Skip to content

Commit

Permalink
Add Style/HashExcept Rubocop rule
Browse files Browse the repository at this point in the history
We were already using it because Rails adds the `Hash#except` method for
Ruby 2.7 and earlier, but since the method wasn't part of Ruby itself,
the Rubocop rule only works with Ruby 3.0 and later.
  • Loading branch information
javierm committed Apr 13, 2023
1 parent b911284 commit f298715
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ Style/FileWrite:
Style/HashConversion:
Enabled: true

Style/HashExcept:
Enabled: true

Style/HashSyntax:
Enabled: true

Expand Down

0 comments on commit f298715

Please sign in to comment.