Back to Intellij Community

ConstPropertyName

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/ConstPropertyName.html

2025.3-rc-2491 B
Original Source

Reports const property names that do not follow the recommended naming conventions.

Consistent naming allows for easier code reading and understanding. According to the Kotlin official style guide, const properties should use uppercase underscore-separated names.

Example:

const val Planck: Double = 6.62607015E-34

The quick-fix renames the property:

const val PLANCK: Double = 6.62607015E-34