Inspectopedia Help

Enum entry naming convention

Reports enum entry names that do not follow the recommended naming conventions.

Example:

enum class Foo { _Foo, foo }

To fix the problem rename enum entries to match the recommended naming conventions.

Inspection options

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

Pattern

[A-Z]([A-Za-z\d]*|[A-Z_\d]*)

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