A property of a class is not named in lower camel case

tx0/kotlin:property-namingallwarningstyle/namingdepth faststyle

What it finds

Properties of classes are named in lower camel case. A leading underscore is accepted for a backing property, as in _state behind state. Constants in objects, companions and at the top level follow their own convention and are left out.

From the rule's source, property_naming.rs.

Example from the rule's tests
class State {    private val _items = mutableListOf<Int>()    val items: List<Int> get() = _items    var Count = 0tx0 reports: the property Count is not in lower camel case    val max_size = 10tx0 reports: the property max_size    companion object {        val DEFAULT_SIZE = 10    }} object Defaults {    val MAX = 3}
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:property-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:property-naming] reason="..."

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