Skip to main content

Dialog: Static Analysis Settings: Metrics

Symbol: _san_icon_metrics.png

Function: Configures the metrics so that they are calculated and displayed accordingly when the View Standard Metrics command is executed.

Call:

  • Project → Project Settings menu, Static Analysis category, Open configuration dialog link

  • Build → Static Analysis → Settings menu

Requirement:

  • The CODESYS Static Analysis package is installed.

  • A project is open.

For more information, see: Configuring and Running Static Analysis

Metric

All selectable Metrics are displayed in the column.

Active

standard icon: The metric is displayed for each POU in the Standard Metrics view following the Build → Static Analysis → View Standard Metrics command.

_cds_icon_option_deactivated.png: The metric is not displayed in the Standard Metrics view following the Build → Static Analysis → View Standard Metrics command.

Lower Limit

Lower value from which the metric is displayed

Upper Limit

Upper value to which the metric is displayed

Tip

The Code size, Variable size, Stack size, and Number of calls metrics are reported only for POUs from libraries which are integrated in the project.

Tip

Violations of the upper and lower limits of the activated metrics can be reported as build errors by means of static analysis rule SA0150.