CODESYS Static Analysis provides pragmas and attributes for activating or deactivating individual rules or naming conventions for static code analysis.
Requirement: The rules or conventions are activated or defined in the project settings.
Attributes are inserted in the declaration part of a POU to deactivate specific rules for an entire programming object.
Pragmas are used in the implementation part of a POU to deactivate specific rules for individual lines of code. One exception is Rule 164, which can also be switched off in the declaration part.
Rules that are deactivated in the project settings cannot be activated by means of pragmas or attributes.
Rule SA0004 cannot be deactivated by means of a pragma or an attribute.
See also