We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With MethodCallWithArgsParentheses enabled, running rubocop -a on this file:
rubocop -a
def foo yield true end
Results in this exception:
undefined method `selector' for #<Parser::Source::Map::Keyword:0x0055d603311da0> /home/ari/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rubocop-0.48.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:96:in `args_begin' /home/ari/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rubocop-0.48.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:69:in `block in autocorrect'
Include the output of rubocop -V. Here's an example:
rubocop -V
$ rubocop -V 0.48.1 (using Parser 2.4.0.0, running on ruby 2.3.3 x86_64-linux)
The text was updated successfully, but these errors were encountered:
Thanks for the report @aripollak. I can reproduce this issue. Will work in it tonight. 🙂
Sorry, something went wrong.
[Fix rubocop#4275] Prevent Style/MethodCallWithArgsParentheses from…
Style/MethodCallWithArgsParentheses
48c2294
… blowing up on `yield` When attempting to auto-correct a `yield` with arguments, this cop would blow up. This change fixes that.
bbb5ad7
No branches or pull requests
With MethodCallWithArgsParentheses enabled, running
rubocop -a
on this file:Results in this exception:
RuboCop version
Include the output of
rubocop -V
. Here's an example:The text was updated successfully, but these errors were encountered: