A file has more lines of code than the limit
What it finds
A source file with a great many lines usually holds more than one idea, and is hard to find one's way around in.
Counted are the lines that hold code, not those with only comments or nothing on them. A file above the parameter max-lines, 1000 by default, is reported at the name of its first type.
From the rule's source, long_file.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/java:long-file" = "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-file] reason="..."tx0 explain tx0/java:long-file shows the same in the terminal. Found a false positive? Report it.