A comment follows code on the same line
What it finds
Comments at the end of lines are pushed out of view by long code, get separated from it when the line is reformatted, and leave little room. A comment on its own line above the code avoids that. This is a convention, which is why the rule is only in the all tier.
From the rule's source, comment_after_code.rs.
Turn it on, off or suppress it
The rule runs from the all tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:comment-after-code" = "note"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:comment-after-code] reason="..."tx0 explain tx0/ts:comment-after-code shows the same in the terminal. Found a false positive? Report it.