Method: RuboCop::Cop::Base#contextual_autocorrect?

Defined in:
lib/rubocop/cop/base.rb

#contextual_autocorrect?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)
[View source]

363
364
365
# File 'lib/rubocop/cop/base.rb', line 363

def contextual_autocorrect?
  cop_config.fetch('AutoCorrect', 'always') == 'contextual'
end