Method: RuboCop::Cop::Base#always_autocorrect?
- Defined in:
- lib/rubocop/cop/base.rb
permalink #always_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.
357 358 359 360 |
# File 'lib/rubocop/cop/base.rb', line 357 def always_autocorrect? # `true` is the same as `'always'` for backward compatibility. ['always', true].include?(cop_config.fetch('AutoCorrect', 'always')) end |