Changes between Version 9 and Version 10 of MetricQuery


Ignore:
Timestamp:
May 31, 2013, 12:11:59 PM (11 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MetricQuery

    v9 v10  
    175175The !RefactorErl supports querying bad smells in the code. This feature depends on the metric analyzer which is disabled by default. 
    176176 
    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] . 
     177The 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]. 
    186178 
    187179When metrics mode is turned on, !RefactorErl initializes the internal metrics representation by creating the necessary tables, and loading them with the available module and function nodes. It also calculates the initial values of the metrics.