Software Metrics Calculator 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

Software Metrics Calculator Options General tab

Calculate software 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 Software Metrics is performed. In an opposite way, functionality of metrics subsystem is not available.

C Cource

Software Metrics Calculator Options General tab

Ignore Comments / Containing regular expression

In this edit box you can enter a regular expression. If the regular expression is specified, metrics calculator 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 / Containing Editor Zoom and Exception Prefix

If this box is checked, metrics calculator ignores the program code comments beginning either with Zoom With prefix or Exception prefix of the Editor. Default state is unchecked.

Ignore Comments / Containing Flowchart Prefixes

If this box is checked, metrics calculator ignores those program code comments beginning with Ignore/Exception prefixes, or Force collapsed/expanded prefixes of Flowchart Generator. Default state is unchecked.

Warnings

Software Metrics Calculator Options General tab

Report these warnings when enabled-selected

Warnings generated during metrics calculation will be reported in the Message Logs if selected from the list of warnings.

Weights

Software Metrics Calculator Options Weights tab

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

Software Metrics Calculator Options Module tab

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

Software Metrics Calculator Options Function tab

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-2017, RistanCASE GmbH