CODESYS Static Analysis performs selected tests on the code, and you can display the results in a view.
Click Build → Static Analysis → Settings. Switch to the Metrics tab.
The metrics that CODESYS Static Analysis applies to the code are listed in a table.
Click Build → Static Analysis → View Standard Metrics.
The view includes a table with a line for each Program unit of the sample program. For each activated metric, there is a column showing the measured values. Values that are outside of the value range defined in the settings are highlighted in red. In the case of this specific example, this is at least the PLC_PRG/Inputs field because the number of input variables in this POU is greater than the defined upper limit of 2
.