-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Rubocop: 0.50.0 and Ruby 2.3 #3183
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
Conversation
Library/Homebrew/brew.rb
Outdated
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.
Is this different from unless possible_tap&.installed??
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.
It's the same but it, like me, doesn't like unless ... else
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.
ah
Library/Homebrew/caveats.rb
Outdated
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.
are the parentheses still needed?
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.
Removed.
Library/Homebrew/cmd/prune.rb
Outdated
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.
oh how gross. can we opt out of this?
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.
Use Python?
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.
you first
Library/Homebrew/extend/ENV/std.rb
Outdated
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.
to_i should be inside the parentheses.
Library/.rubocop.yml
Outdated
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 catching this. My $EDITOR's Rubocop plugin has already been driving me up the wall over EOS stuff.
Edit - Up the wall, not up to the wall.
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.
You can thank me for the fit I pitched about it lol
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.
I don't understand what the issue is with EOS to be honest. It'd seem silly to get ultra-specific inside formulae at least.
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.
I get the sense that whatever conversations there were about this didn't really occur in the open.
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.
One nice thing is that in TextMate you get nested syntax highlighting inside heredocs if you use e.g. RUBY, but if it's just text, I'm also in favour of EOS.
|
You can bump |
|
It's fitting that the only offense in all of core is |
|
RuboCop should at least suggest |
|
I'm getting which does not occur without this pulled. The message is bogus. |
Safe navigation needs to be chained to preserve equivalence. Fixes a bug introduced by 01e9ec9 in Homebrew#3183.
Also fix all cop renames, disable some cops and fix all warnings.
Want to also fix any/all Homebrew/core warnings first before merging this.