Skip to main content

Command: Show Cognitive Complexity for Current Editor

Symbol: _san_icon_cognitive_complexity.png

Function: The command starts the static code analysis and calculates a measured value for the cognitive complexity of the code in the current editor. The dialog which opens visualizes the result and specifies the measured value sum in the title. The analyzed code is listed and displayed with the detected complexities.

Call: Build → Static Analysis menu

Requirement: A programming object in the ST implementation language is open in the editor.

Dialog: Cognitive Complexity of <POU name>: <calculated measured value>

Example 13. Example
_san_img_example_cognitive_complexity.png