SA0101: Names with invalid length
Detects names with invalid length.
Justification: Some programming guidelines specify a minimum length for variable names. This analysis can be used to check compliance.
Importance: Low
PLCopen rule: N6
Tip
All rules are listed in the Settings Static Analysis: Rules dialog. There you can double-click Rule 101 to open the rule-specific configuration. Then you can define the minimum and maximum number of characters and set exceptions to them in the Length of Names dialog.
Example 90. Example
PROGRAM PLC1 // SA0101 VAR iVar1 : INT; // SA0101 END_VAR
Output in the Messages view:
SA0101: Invalid length of name 'PLC1'