# frozen_string_literal: true module RuboCop module Cop module Naming # Makes sure that all variables use the configured style, # snake_case or camelCase, for their names. # # @example EnforcedStyle: snake_case (default) # # bad # fooBar = 1 # # # good # foo_bar = 1 # # @example EnforcedStyle: camelCase # # bad # foo_bar = 1 # # # good # fooBar = 1 # # @example AllowedPatterns: ['_v\d+\z'] # # good # :release_v1 class VariableName < Base include AllowedIdentifiers include ConfigurableNaming include AllowedPattern MSG = 'Use %