A function or constructor parameter is not named in lower camel case

tx0/kotlin:parameter-namingallwarningstyle/namingdepth faststyle

What it finds

The Kotlin coding conventions name parameters in lower camel case, as userId, without underscores; a leading underscore is accepted. Overrides are left out, as their names follow the overridden function.

From the rule's source, parameter_naming.rs.

Example from the rule's tests
fun send(    user_id: Int,tx0 reports: the parameter user_id is not in lower camel case    Count: Int,tx0 reports: the parameter Count    retries: Int,) {} class Point(val x_pos: Int, val y: Int)tx0 reports: the parameter x_pos class Child : Base() {    override fun send(user_id: Int) {}}
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

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/kotlin:parameter-naming" = "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:parameter-naming] reason="..."

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