-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Feature Request: Style/EachForSimpleLoop #3018
Comments
There's one called |
Hi @Drenmi! No, it's not that. The code I'm talking about has already been corrected by the cop you mention. I'm looking for a smarter cop that detects that you're using things like |
Actually, it's not a necessary condition, because |
Right, I find the |
I'd like RuboCop to detect and autocorrect things like:
The preferred style would be
I guess it could be generalized to
Autocorrected the same way.
Does this sound like a good idea?
The text was updated successfully, but these errors were encountered: