Skip to content

Commit 71a8e2e

Browse files
committed
Enable Style/ArrayIntersect cop
1 parent 77b16c1 commit 71a8e2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ Style/ArgumentsForwarding:
417417
Enabled: false
418418

419419
Style/ArrayIntersect:
420-
Enabled: false
420+
Enabled: true
421421

422422
Style/BisectedAttrAccessor:
423423
Enabled: false

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,7 @@ Style/ArrayCoercion:
23232323
VersionAdded: '0.88'
23242324
Style/ArrayIntersect:
23252325
Description: Use `array1.intersect?(array2)` instead of `(array1 & array2).any?`.
2326-
Enabled: false
2326+
Enabled: true
23272327
VersionAdded: '1.40'
23282328
Style/ArrayJoin:
23292329
Description: Use Array#join instead of Array#*.

0 commit comments

Comments
 (0)