A named parameter of a function definition is never used in its body

tx0/cpp:unused-parameterstrictnotemaintainability/dead-codedepth fastsmell

What it finds

A parameter that the body ignores is either left over from a change or required by an interface; in the second case leaving out its name, or [[maybe_unused]], says so. Bodies with macros, which may use the name, are left alone.

From the rule's source, unused_parameter.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/cpp:unused-parameter" = "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/cpp:unused-parameter] reason="..."

tx0 explain tx0/cpp:unused-parameter shows the same in the terminal. Found a false positive? Report it.