Skip to content
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

Fixes #12574 - Upgrade rubocop to 0.35.1 #346

Closed
wants to merge 1 commit into from
Closed

Fixes #12574 - Upgrade rubocop to 0.35.1 #346

wants to merge 1 commit into from

Conversation

brandonweeks
Copy link
Member

Same thing as theforeman/foreman#2924

@domcleal
Copy link
Contributor

The rubocop test is failing as it seems to be crashing on one of our source files. I think it should be filed as a bug against rubocop, and then we can either workaround it by excluding the code with a rubocop comment or config file.

An error occurred while Style/StabbyLambdaParentheses cop was inspecting /home/dcleal/code/foreman/smart-proxy/modules/puppet_proxy/class_scanner_eparser.rb.
undefined method `children' for :do_find:Symbol
/home/dcleal/.rvm/gems/ruby-2.1.0@proxy/gems/rubocop-0.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:98:in `args?'
/home/dcleal/.rvm/gems/ruby-2.1.0@proxy/gems/rubocop-0.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:83:in `lambda_with_args?'
/home/dcleal/.rvm/gems/ruby-2.1.0@proxy/gems/rubocop-0.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:27:in `on_send'

Edit: seems it's interpreting our o.lambda call as a lambda, this test shows it: https://gist.github.com/e792c526eed7275f6b4b

@brandonweeks
Copy link
Member Author

Filed as rubocop/rubocop#2451.

@brandonweeks
Copy link
Member Author

rubocop:disable Style/StabbyLambdaParentheses

doesn't work in this case, it still errs. disabled in .rubocop.yml instead.

@dmitri-d
Copy link
Member

Merged in 45ba025. Thanks, @brandonweeks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants