Dialog 'Static Analysis Settings' - 'Metrics'Permalink

Function: In the dialog, you select the metrics to be displayed for each POU in the “Standard Metrics” view by means of the “Build  Static Analysis  View Standard Metrics” command.

Call:

  • “Open configuration dialog” button in the menu “Project  Project Settings”, “Static Analysis” category

  • Menu bar: “Build  Static analysis  Settings”

Requirement:

  • The CODESYS Static Analysis package is installed.

  • A project is open.

“Metrics”

All selectable metrics are displayed in the column.

“Active”

_cds_icon_option_activated: 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: 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

The “Code size”, “Variable size”, “Stack size”, and “Calls” metrics are reported only for POUs from libraries which are integrated in the project.

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