A function declaration that is not a definition marks a by-value parameter const, which means nothing to callers

tx0/cpp:const-value-parameter-in-declarationallnotestyle/conventionsdepth faststyle

What it finds

Top-level const on a parameter taken by value is not part of the function's type; in a declaration it only adds noise, and the definition may differ. It belongs, if anywhere, on the definition.

From the rule's source, const_value_parameter_in_declaration.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:

tx0.toml
[rules]
"tx0/cpp:const-value-parameter-in-declaration" = "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:const-value-parameter-in-declaration] reason="..."

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