Inspectopedia Help

Static variable naming convention

Reports static variables whose names are too short, too long, or do not follow the specified regular expression pattern.

Constants, i.e. variables of immutable type declared static final, are not checked by this inspection

Use the fields provided below to specify minimum length, maximum length and regular expression expected for static variable names.

Regular expressions should be specified in the standard java.util.regex format.

Inspection options

Option

Type

Default

Pattern

String

s_[a-z][A-Za-z\d]*

Min length

Number

4

Max length

Number

32

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023