A string literal continues on the next line after a backslash
What it finds
A backslash at the end of a line inside a string continues the string on the next line without a line break in its value. The indentation of the next line becomes part of the string, and a space after the backslash turns it into a syntax error. A template literal or a concatenation says what is meant.
From the rule's source, line_continuation_string.rs.
Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:line-continuation-string" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:line-continuation-string] reason="..."tx0 explain tx0/ts:line-continuation-string shows the same in the terminal. Found a false positive? Report it.