-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Preformance/RedundantEqualityComparisonBlock is incorrect #225
Labels
bug
Something isn't working
Comments
Indeed, we should assume that the order with |
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 15, 2021
…mparisonBlock` Fixes rubocop#225 This PR fixes a false positive for `Style/RedundantEqualityComparisonBlock` when using `any?` with `===` comparison block and block argument is not used as a receiver for `===`.
8 tasks
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 16, 2021
…mparisonBlock` Fixes rubocop#225 This PR fixes a false positive for `Style/RedundantEqualityComparisonBlock` when using `any?` with `===` comparison block and block argument is not used as a receiver for `===`.
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 17, 2021
…mparisonBlock` Fixes rubocop#225 This PR fixes a false positive for `Style/RedundantEqualityComparisonBlock` when using `any?` with `===` comparison block and block argument is not used as a receiver for `===`.
koic
added a commit
that referenced
this issue
Mar 20, 2021
…equality_comparison [Fix #225] Fix a false positive for `Style/RedundantEqualityComparisonBlock`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For code like
the cop is reporting/autofixing with
This is incorrect since
any?
with a pattern is equivalent tohttps://ruby-doc.org/core-2.5.1/Enumerable.html#method-i-any-3F
The text was updated successfully, but these errors were encountered: