Skip to content

Commit f92b332

Browse files
committed
Enable Style/CollectionQuerying
1 parent 616c4fa commit f92b332

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,11 @@ Style/ClassVars:
702702
Style/CollectionCompact:
703703
Enabled: false
704704

705+
<% if rubocop_version >= '1.77' %>
706+
Style/CollectionQuerying:
707+
Enabled: true
708+
<% end %>
709+
705710
Style/ColonMethodCall:
706711
Enabled: false
707712

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ Style/CollectionMethods:
27432743
Style/CollectionQuerying:
27442744
Description: Prefer `Enumerable` predicate methods over expressions with `count`.
27452745
StyleGuide: "#collection-querying"
2746-
Enabled: pending
2746+
Enabled: true
27472747
VersionAdded: '1.77'
27482748
Safe: false
27492749
Style/ColonMethodCall:

0 commit comments

Comments
 (0)