class RuboCop::Cop::Naming::VariableNumber
variable_one = 1
variableone = 1
# good
variable_1 = 1
variable1 = 1
# bad
@example EnforcedStyle: non_integer
variable1 = 1
# good
variable_1 = 1
# bad
@example EnforcedStyle: normalcase (default)
variable_1 = 1
# good
variable1 = 1
# bad
@example EnforcedStyle: snake_case
for their numbering.
configured style, snake_case, normalcase, or non_integer,
This cop makes sure that all numbered variables use the
def message(style)
def message(style) format(MSG, style: style) end
def on_arg(node)
def on_arg(node) name, = *node check_name(node, name, node.loc.name) end