Skip to content

Commit

Permalink
Disable Style/ArrayIntersect and undo rubocop autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
george-ma committed Mar 21, 2024
1 parent e90fbb5 commit ac6b3c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inherit_gem:
Style/ClassMethodsDefinitions:
Enabled: false

Style/ArrayIntersect:
Enabled: false

AllCops:
Exclude:
- 'vendor/**/*'
Expand Down
2 changes: 1 addition & 1 deletion lib/erb_lint/utils/block_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def find_overlapping_pair
@connections.each do |first|
@connections.each do |second|
next if first == second
return [first, second] if first.intersect?(second)
return [first, second] if (first & second).any?
end
end
nil
Expand Down

0 comments on commit ac6b3c1

Please sign in to comment.