A line has more characters than the limit

tx0/java:long-linestrictwarningstyle

What it finds

Long lines have to be scrolled sideways or wrapped by the editor, and in a side-by-side diff they are cut off.

Counted are the characters of a line, a tab as one. Lines of import and package declarations and lines with a URL are left alone, since they cannot be broken well. A line above the parameter max-length, 150 by default, is reported.

From the rule's source, long_line.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/java:long-line" = "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/java:long-line] reason="..."

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