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
Style/MethodDefParentheses only finds offense 1 per core #8514
Comments
I'm also facing this. Also, I need to run with cache disabled otherwise it won't even detect anything else. It's a bit silly, but i ended up by writing a bash script to run rubocop in a loop auto correcting the offenses:
https://gist.github.com/rpbaltazar/80f95c6deda17dbd06905c213cede041 |
Wanted to say I am hitting this as well. Tried To expand though I am seeing this with |
…od_def_parentheses [Fix #8514] Correct multiple Style/MethodDefParentheses per file.
There is a strange issue that is occurring where when we run rubocop it only finds a few offenses each time. This is particularly annoying because it requires an iterative approach to resolve all issue.
Style/MethodDefParentheses appears to be the particular cop causing this problem.
Expected behavior
I expect the results for
bundle exec rubocop
to find all violation of all cops across all filesActual behavior
When I run
bundle exec rubocop
, I get 1 offenseWhen I run
bundle exec rubocop -P
, I get 4 offenses (one for each core)Steps to reproduce the problem
We are not using a Gemfile.lock in this instance (want latest versions of everything).
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: