A function is defined with an empty body and no comment that says why

tx0/c:empty-function-bodystrictwarningmaintainability/dead-codedepth fastsmell

What it finds

void on_signal(int s) {}: an empty body may be a stub never filled in or a hook meant to do nothing; a comment in it tells which.

From the rule's source, empty_function_body.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/c:empty-function-body" = "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:empty-function-body] reason="..."

tx0 explain tx0/c:empty-function-body shows the same in the terminal. Found a false positive? Report it.