KT.BOOLEAN_PROPERTY_NAMING
Boolean property doesn't match a pattern
Reports when a boolean property doesn't match a pattern.
Noncompliant Code
Copy
val progressBar: Boolean = true
Compliant Code
Copy
val hasProgressBar: Boolean = true
Options
-
allowedPattern
(default:^(is|has|are)
)naming pattern
-
ignoreOverridden
(default:True
)ignores properties that have the override modifier