# frozen_string_literal: true module RuboCop module Cop module Naming # Makes sure that all methods use the configured style, # snake_case or camelCase, for their names. # # This cop has `AllowedPatterns` configuration option. # # Naming/MethodName: # AllowedPatterns: # - '\AonSelectionBulkChange\z' # - '\AonSelectionCleared\z' # # Method names matching patterns are always allowed. # # @example EnforcedStyle: snake_case (default) # # bad # def fooBar; end # # # good # def foo_bar; end # # @example EnforcedStyle: camelCase # # bad # def foo_bar; end # # # good # def fooBar; end class MethodName < Base include ConfigurableNaming include AllowedPattern include RangeHelp MSG = 'Use %