Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Code smell |
BSL OS |
Major |
Yes |
1 |
badpractice suspicious unpredictable |
In source text, multi-line constants can be initialized in two ways:
- 'classic', which uses line feed and string concatenation
- 'crazy' where lines are separated by whitespace
The second method complicates the perception; when using it, it is easy to make and miss a mistake.
// BSLLS:CrazyMultilineString-off
// BSLLS:CrazyMultilineString-on
"CrazyMultilineString": false