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:
  • .enabled specifies whether a rule is enabled. Valid values are true or false.
  • .severity specifies the severity level. Valid values are error, info, or warning (default).
    Warning: If the severity is set to error, 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"