-
Notifications
You must be signed in to change notification settings - Fork 194
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
I love the smell of Rubocop fixes in the morning. #1118
Conversation
width ||= @style[:diameter] || @style[:width] || (@style[:radius] || 0) * 2 | ||
left ||= @style[:left] | ||
top ||= @style[:top] | ||
width ||= @style[:diameter] || @style[:width] || (@style[:radius] || 0) * 2 |
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, I do disagree with this - might be my personal style (and that my IDE makes those for me) but I like lining op =
operators just as I like lining up =>
in hashes, tremendously improves readability imo :)
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.
Thanks for pointing this out, I missed this and I agree with you. Looks like there's a configuration option called MultiSpaceAllowedForOperators
that will allow lining these up. I'll drop this commit from the PR and make a new one for this cop.
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.
👍 sounds good
Most of this looks good 👍 Personally I like aligning operators such as The other things are about spaces around braces, where I'm not entirely sure. Tobi |
Added some notes above, I'll move the questionable commits into their own PRs |
19a31fd
to
45290ed
Compare
Rebased against master and bumped some method length/complexity limits from new code in master :P |
Rebased against master after |
@@ -79,16 +79,16 @@ def run(str) | |||
when "\n" | |||
begin | |||
out, obj = IRBalike.run(@cmd + ';') | |||
@str += ["#@cmd\n", | |||
@str += ["#{@cmd}\n", |
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.
Didn't even realize this was allowed with strings! Glad to see it going away 😁
Reading through this, I'm happy with the hash changes as they stand so I'll take it. |
Low hanging fruit - style autocorrect fixes for #945