Inspectopedia Help

Const property naming convention

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.


const val Planck: Double = 6.62607015E-34

The quick-fix renames the property:

const val PLANCK: Double = 6.62607015E-34

Inspection options

Here you can find the description of settings available for the Const property naming convention inspection, and the reference of their default values.



Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Kotlin, 241.16690-IJ

Last modified: 29 April 2024