100 | | The RefactorErl supports querying bad smells in the code. This feature depends on the |
101 | | metric analyzer which is disabled by default. The metric analyser mode can be enabled/ |
102 | | disabled using these menus. |
| 100 | The RefactorErl supports querying bad smells in the code. |
| 101 | |
| 102 | The metric analyser mode has to be manually enabled by selecting Start metrics from the Server item in the RefactorErl menu in the Emacs interface of RefactorErl. Clicking Start metrics from the same menu turns the mode off. When Metrics mode is on, the status indicator displays Erlang Refact Metrics or a similar message. |
| 103 | |
| 104 | When in metric analyser mode, the Emacs interface of RefactorErl displays the values of changed metrics after a transformation is invoked. The analyser opens up the Metrics Result buffer, and shows the expected and the current values of the measured metrics for all modules that have at least one metric that is out of bounds. |
| 105 | Values of metrics outside the user defined limits (”bad code smells”) can also be queried manually using Show bad smells in the Semantic query menu. |