-
-
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
Fix IndentationWidth
not handling element assignment correctly.
#976
Fix IndentationWidth
not handling element assignment correctly.
#976
Conversation
found another bug here, going to amend the commits |
Fixed! |
_receiver, method_name = *node | ||
if ELEMENT_SETTERS.include?(method_name) | ||
_receiver, _setter, _key, rhs = *node | ||
elsif method_name.to_s.end_with?('=') # setter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, perhaps this should be more lax. it really should just work for every method call?
another h/t to @daicoden for simplifying the logic |
👍 Looks good! |
👍 Nice work! |
Fix `IndentationWidth` not handling element assignment correctly.
Think you could cut a new release with this? Would allow me to roll out a number of new cops to a Very Large Project |
I have planned a few more things for that particular release, that should hopefully be ready by the beginning of next week. Between releases I simply use |
sounds good, i'll do that for the time being. |
@bbatsov @jonas054 h/t to @ggilder for helping out with this one.