-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance/RedundantEqualityComparisonBlock doesn't consider multidimensional arrays #214
Closed
davidenglishmusic opened this issue
Mar 1, 2021
· 0 comments
· Fixed by #215 or ministryofjustice/Claim-for-Crown-Court-Defence#3815
Closed
Performance/RedundantEqualityComparisonBlock doesn't consider multidimensional arrays #214
davidenglishmusic opened this issue
Mar 1, 2021
· 0 comments
· Fixed by #215 or ministryofjustice/Claim-for-Crown-Court-Defence#3815
Labels
bug
Something isn't working
Comments
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 1, 2021
…lityComparisonBlock` Fixes rubocop#214. This PR fixes a false positive for `Performance/RedundantEqualityComparisonBlock` when using multiple block arguments.
8 tasks
koic
added a commit
that referenced
this issue
Mar 1, 2021
…uality_comparison_block [Fix #214] Fix a false positive for `Performance/RedundantEqualityComparisonBlock`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: