Add Rails/WhereNotWithMultipleConditions rule

This rule was introduced in rubocop-rails 2.17.0.

We don't use `where.not` with multiple conditions anywhere, but if we
did, it would indeed be very confusing, so we're adding a rule to avoid
that scenario.
This commit is contained in:
Javi Martín
2023-09-06 15:02:31 +02:00
parent 58a9e6c76e
commit cb32d19f5e

View File

@@ -455,6 +455,9 @@ Rails/WhereEquals:
Rails/WhereNot:
Enabled: true
Rails/WhereNotWithMultipleConditions:
Enabled: true
RSpec/AroundBlock:
Enabled: true