A function name starts with an uppercase letter or has underscores

tx0/kotlin:function-namingstrictwarningstyle/namingdepth faststyle

What it finds

The Kotlin coding conventions name functions in lower camel case, such as loadUser. Left alone are names in backquotes, as tests use, factory functions named after the type they return, and functions with annotations, such as composable functions, whose conventions differ.

From the rule's source, function_naming.rs.

Example from the rule's tests
fun LoadUser() = 1tx0 reports: LoadUser is not in lower camel casefun load_user() = 1tx0 reports: load_user is not in lower camel casefun loadUser() = 1fun `loads the user`() = 1fun Point(x: Int): Point = Point(x, 0)@Composablefun Greeting() {}
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 strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/kotlin:function-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:function-naming] reason="..."

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