You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…lityComparisonBlock`
Fixesrubocop#214.
This PR fixes a false positive for `Performance/RedundantEqualityComparisonBlock`
when using multiple block arguments.
The cop assumes the input is a single dimensional array.
Expected behavior
It should not flag the infraction with an incorrect suggestion.
Actual behavior
It flags the infraction with an incorrect suggestion.
Steps to reproduce the problem
Run bundle exec rubocop -a on the following code:
C: [Correctable] Performance/RedundantEqualityComparisonBlock: Use any?('orange') instead of block.
RuboCop version
The text was updated successfully, but these errors were encountered: