From cb32d19f5e9613a3c702e8588629980fdcab885f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 6 Sep 2023 15:02:31 +0200 Subject: [PATCH] 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. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 2a2d0a75b..dc5145c57 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -455,6 +455,9 @@ Rails/WhereEquals: Rails/WhereNot: Enabled: true +Rails/WhereNotWithMultipleConditions: + Enabled: true + RSpec/AroundBlock: Enabled: true