Source Code Metrics - Analyzer Options
Displays a dialog box which enables you to configure the analytical part of the metrics. The configuration is saved within the metrics template.
General
C Source
Warnings
Weights
Module
Function
General
Calculate Source Code Metrics
If this box is checked, in a range of forming / bringing up to date symbol base (item Start > Rebuild Database, e.g. Start > Build Database) forming / bringing up to date Source Code Metrics is performed. In an opposite way, functionality of metrics subsystem is not available.
C Source
Ignore Comments / Containing regular expression
In this edit box you can enter a regular expression. If the regular expression is specified, Metrics Analyzer ignores those comments in the program code that contain a substring paired with the regular expression. This adjustment influences following metrics: lines, lines with comments, comment lines and others, which indirectly depend on the ones stated. By default, this expression is not specified.
Note: When it comes to single-line comments following one another, the comment containing a substring paired with the regular expression will be ignored, as well as all other comments following this comment, because it is assumed that they form a logical unity. For example, if you specify the regular expression:
\$.*\$
and the source file contains the following comments:
/* $Log__$ */
/* Changes... */
// 12.02.02. DD
// foo bar
// baz
the metrics analyzer will ignore the comments from the first four lines, but it will include the comment // baz.Ignore Comments / Beginning with Editor Zoom and Exception Prefix
If this box is checked, Metrics Analyzer ignores the program code comments beginning either with Zoom With prefix or Exception prefix of the Editor. Default state is unchecked.
Ignore Comments / Beginning with Flowchart Ignore/Except Prefixes
If this box is checked, Metrics Analyzer ignores those program code comments beginning with Ignore/Exception prefixes, or Force collapsed/expanded prefixes of Flowchart Generator. Default state is unchecked.
Warnings
Report these warnings when enabled-selected
Warnings generated during metrics analysis will be reported in the Message Logs if selected from the list of warnings.
Toggle select all
With this button you can activate or deactivate all messages.
Reread from Template
With this button, you can activate the messages configured in the active Software Metrics Template.
Weights
Operator weight
The weight used to calculate some of the metrics at the function level is provided for each operator. The weight of the operator chosen from the list is displayed and can be changed in the Weight text box. After operator weight has been altered, metric analysis must be carried out once more.
Module
Property
Once a property has been selected from the list, it is possible to specify, in the lower edit boxes, its extreme values and thus determine the scope within which the values of a particular parameter will be considered regular. Values not in this scope will be considered irregular and will be marked by a different view style (different color, different pattern...) in metrics reports on module level.
Boundary values of group metrics are calculated from the available boundary values of module and function parameters.
Function
Property
Once a property has been selected from the list, it is possible to specify, in the lower edit boxes, its extreme values and thus determine the scope within which the values of a particular parameter will be considered regular. Values out of this scope will be considered irregular and will be marked by a different view style (different color, different pattern...) in metrics reports on function level.
Boundary values of group metrics are calculated from the available boundary values of module and function parameters.
Copyright © 1993-2022, RistanCASE PR