Add Style/HashExcept Rubocop rule

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.
This commit is contained in:
Javi Martín
2022-09-12 16:21:58 +02:00
parent b911284b86
commit f298715f78

View File

@@ -505,6 +505,9 @@ Style/FileWrite:
Style/HashConversion: Style/HashConversion:
Enabled: true Enabled: true
Style/HashExcept:
Enabled: true
Style/HashSyntax: Style/HashSyntax:
Enabled: true Enabled: true