Method: RuboCop::Config#for_cop

Defined in:
lib/rubocop/config.rb

#for_cop(cop) ⇒ Object



95
96
97
# File 'lib/rubocop/config.rb', line 95

def for_cop(cop)
  @for_cop[cop.respond_to?(:cop_name) ? cop.cop_name : cop]
end