A line is longer than the configured maximum

tx0/ts:line-lengthstrictwarningstyle

What it finds

Lines that run past the edge of an editor or a side-by-side diff are hard to read and to review.

The length is counted in characters. A line is left alone when the part past the limit is inside a string, template, regular expression, JSX text or comment, which often cannot be broken without changing it, as for a URL; and so are import declarations. The limit is the parameter max (180 characters by default).

From the rule's source, line_length.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:

tx0.toml
[rules]
"tx0/ts:line-length" = "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-length] reason="..."

tx0 explain tx0/ts:line-length shows the same in the terminal. Found a false positive? Report it.