Multi-line STRING definition rules
The multi-line string rule checks to ensure that a string definition does not span several lines.
The ruleId
The ruleId is avoidMultiLineString.
Options
The options available for multi-line string rules are:
.enabledspecifies whether a rule is enabled. Valid values aretrueorfalse..severityspecifies the severity level. Valid values areerror,info, orwarning(default).Warning: If the severity is set toerror, the compilation will fail if the rule is broken.
Example
To check that a string definition does not span lines, and to output an warning if an exception is found, specify these rules:
avoidMultiLineString.enabled = true
avoidMultiLineString.severity = warning
For this example, this string definitioin would be
compliant:
DEFINE aString STRING
LET aString = "AAAA AAAA"For this example, this string definition would NOT be
compliant:
DEFINE aString STRING
LET aString = "AAAA
AAAA"