Skip to content

Commit

Permalink
Enable Performance/MapCompact cop
Browse files Browse the repository at this point in the history
Follow rails/rails@bbbc861

This PR enables `Performance/MapCompact` cop and
requires RuboCop Performance 1.11 or higher.
Because `Performance/MapCompact` cop has introduced in
RuboCop Performance 1.11.
  • Loading branch information
koic committed Apr 25, 2021
1 parent 37fcee5 commit a34c5bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ Performance/BindCall:
Performance/FlatMap:
Enabled: true

Performance/MapCompact:
Enabled: true

Performance/RedundantMerge:
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion rubocop-rails_config.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "rubocop", ">= 1.13"
spec.add_dependency "rubocop-ast", ">= 1.0.1"
spec.add_dependency "rubocop-performance", "~> 1.3"
spec.add_dependency "rubocop-performance", "~> 1.11"
spec.add_dependency "rubocop-rails", "~> 2.0"
spec.add_dependency "rubocop-packaging", "~> 0.5"
spec.add_dependency "railties", ">= 5.0"
Expand Down

0 comments on commit a34c5bf

Please sign in to comment.