A function that is neither an override nor open has an empty body and no comment

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

What it finds

An empty function that overrides nothing does nothing for its callers. If that is the point, a comment says so; otherwise it is unfinished.

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/kotlin: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/kotlin:empty-function-body] reason="..."

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