Static Metric Settings

The Static Metric settings are part of the Configuration Settings dialog box, which allows you to configure settings for each node.

Use the Static Metric settings to change any project settings related to the calculation of static metrics.

By default, the settings of each node are inherited from those of the parent node. When you override the settings of a parent node, changes are propagated to all child nodes within the same Configuration. Overridden fields are displayed in bold.

  • One level metrics (for C and C++ only) : By default, .met static metric files are produced for source files as well as all dependency files that are found by the Source Code Parser. Set One level metrics to Yes to restrict the calculation of static metrics only to the source files displayed in the Project Browser. In Ada, this setting is ignored.

  • Analyzed directories: This setting allows you to restrict the generation of .met metric files only to files which are located in the specified directories.

  • Generate metrics in source directories: By default, all .met files are generated in the project directory, and use the same name as the source file. Select Yes on this setting to compute metrics for source files that have the same name but are located in different directories. In this case, each .met is generated in the source directory of each file.

  • Additional options: Use this setting to specify extra command line options. In most cases this should be empty.

To edit the Static Metrics settings for one or several nodes:

  1. In the Project Explorer, click the Settings button.

  2. Select a node in the Project Explorer pane.

  3. In the Configuration Settings list, select Static Metrics.

  4. When you have finished, click OK to validate the changes.

Related Topics

About Configuration Settings | About Static Metrics