Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information