Skip to content
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

using & with empty? cops back and forth #9924

Closed
badal opened this issue Jul 10, 2021 · 4 comments
Closed

using & with empty? cops back and forth #9924

badal opened this issue Jul 10, 2021 · 4 comments

Comments

@badal
Copy link

badal commented Jul 10, 2021

Rubocop 0.77.0

Using thing && thing.empty? => Cop says : use &.empty?
Using thing&.empty? => Cop says : don't use & with empty?

@jonas054
Copy link
Collaborator

jonas054 commented Jul 10, 2021

This bug was fixed in #8654, which was released in RuboCop 0.91.0.

@badal
Copy link
Author

badal commented Jul 11, 2021 via email

@jonas054
Copy link
Collaborator

Support for Ruby 2.4 was dropped in RuboCop 1.13.0, so you should still be able to upgrade to a RuboCop version where this bug is fixed.

@badal
Copy link
Author

badal commented Jul 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants