You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit applies `rubocop --auto-gen-config` to suppress the following offense:
```console
$ bundle exec rubocop
(snip)
Offenses:
lib/rubocop/cop/rails/blank.rb:126:35: C: [Correctable] InternalAffairs/CopEnabled:
Use config.cop_enabled?('Style/UnlessElse') instead of config.for_cop('Style/UnlessElse')['Enabled'].
return if node.else? && config.for_cop('Style/UnlessElse')['Enabled']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/rubocop/cop/rails/present.rb:113:35: C: [Correctable] InternalAffairs/CopEnabled:
Use config.cop_enabled?('Style/UnlessElse') instead of config.for_cop('Style/UnlessElse')['Enabled'].
return if node.else? && config.for_cop('Style/UnlessElse')['Enabled']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
296 files inspected, 2 offenses detected, 2 offenses autocorrectable
RuboCop failed!
```
In the future, the offense of `InternalAffairs/CopEnabled` can be autocorrected,
but raising the minimum required RuboCop version just for that should be avoided.
0 commit comments