177 | | {{{#!comment |
178 | | TODO: If Emacs support is stable, the description is needed to make wider enclosing the Emacs specific settings.. |
179 | | 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. |
180 | | |
181 | | 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 as shown in Figure 8. |
182 | | 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. Figure 9 shows the output of this query, which is quite similar to Figure 8; the main difference is that Figure 9 shows all bad metric values, while the other displays only those that are affected by the transformation. |
183 | | }}} |
184 | | |
185 | | The metric analyser mode has to be manually enabled. To learn about the commands please visit the following [ErlangShellInterface#Queryingbadsmells page] . |
| 177 | The metric analyser mode has to be manually enabled. To learn about the commands please visit the following [ErlangShellInterface#Queryingbadsmells page]. Metric analyser mode is also supported by the [EmacsInterface#Startingandstoppingmetricmode Emacs interface]. |