Pattern: Invalid style for variable number
Issue: -
This rule makes sure that all numbered variables use the configured style for their numbering.
"EnforcedStyle => 'snake_case'"
# bad
variable1 = 1
# good
variable_1 = 1
"EnforcedStyle => 'normalcase'"
# bad
variable_1 = 1
# good
variable1 = 1
"EnforcedStyle => 'non_integer'"
#bad
variable1 = 1
variable_1 = 1
#good
variableone = 1
variable_one = 1
Attribute | Value |
---|---|
EnforcedStyle | normalcase |
SupportedStyles | snake_case, normalcase, non_integer |