A source file does not end with a newline
What it finds
Before C11, a source file that does not end in a newline had undefined behaviour, and some tools still drop or merge its last line; diffs mark it, too.
From the rule's source, missing_final_newline.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/c:missing-final-newline" = "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/c:missing-final-newline] reason="..."tx0 explain tx0/c:missing-final-newline shows the same in the terminal. Found a false positive? Report it.