Static analysis

During execution of the static analysis, the system checks for compliance with coding rules, naming conventions and prohibited symbols. The following section provides a sample for each of these aspects.

1) Coding rules

In this sample some coding rules are configured as errors. The violations of this coding rules are therefore reported as an error after the static analysis has been performed. Further information is shown in the following diagram.

Static analysis 1:

2) Naming conventions

The following naming conventions are configured:

This naming conventions are not adhered to in the declaration of Boolean variables ("x"), the instantiation of function block ("f") and the declaration of the interface type ("ITF_"). These code positions are reported as an error after the static analysis has been performed.

Static analysis 2:

See also:

 3) Forbidden symbols

The bit string operator XOR and the bit shift-operators SHL, SHR, ROL and ROR are configured as forbidden symbols. These operators should not be used in the code.
Consequently, the use of these operators is reported as an error after the static analysis has been performed.

Static analysis 3: