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

Option

Type

Default

Pattern

String

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

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023