Skip to content

Commit

Permalink
Enable Style/ArrayIntersect cop
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Jan 24, 2023
1 parent 77b16c1 commit 71a8e2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ Style/ArgumentsForwarding:
Enabled: false

Style/ArrayIntersect:
Enabled: false
Enabled: true

Style/BisectedAttrAccessor:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@ Style/ArrayCoercion:
VersionAdded: '0.88'
Style/ArrayIntersect:
Description: Use `array1.intersect?(array2)` instead of `(array1 & array2).any?`.
Enabled: false
Enabled: true
VersionAdded: '1.40'
Style/ArrayJoin:
Description: Use Array#join instead of Array#*.
Expand Down

0 comments on commit 71a8e2e

Please sign in to comment.