Skip to content

Commit ac6b3c1

Browse files
committed
Disable Style/ArrayIntersect and undo rubocop autocorrect
1 parent e90fbb5 commit ac6b3c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inherit_gem:
44
Style/ClassMethodsDefinitions:
55
Enabled: false
66

7+
Style/ArrayIntersect:
8+
Enabled: false
9+
710
AllCops:
811
Exclude:
912
- 'vendor/**/*'

lib/erb_lint/utils/block_map.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def find_overlapping_pair
214214
@connections.each do |first|
215215
@connections.each do |second|
216216
next if first == second
217-
return [first, second] if first.intersect?(second)
217+
return [first, second] if (first & second).any?
218218
end
219219
end
220220
nil

0 commit comments

Comments
 (0)