-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unable to use CLI --list option #21
Comments
I'm trying to understand why my Gemfile is linted when I run standard RuboCop, but not when I run RuboCop gradual. In fact when I use
But when I run rubocop-gradual I see:
Adding the 81 files found for autocorrection to the 355 files with issues it adds up to the expected 436 that standard RuboCop processes... Perhaps that makes sense... but if I create offenses in my |
I'm guessing that this is relevant somehow (and also not entirely fixed): |
Hey, sorry for the late response! I made Regarding |
It's not Also, the issue isn't related to file changes. The huge difference between running vanilla Simply from changing the command I run from Also, a separate issue recently started happening. The shim no longer works at all, and I've had to switch to using the |
Yup, The change in rules is strange, but I didn't find anything related to that yet 😫 |
Oh I forgot to mention the other aspect of this, which is that the total number of files scanned is a huge hint as to the problem here. Where vanilla rubocop says
rubocop gradual has this at the end of the run:
This shouldn't have anything to do with the state of the file's changes. Additionally, specifically regarding the Gemfile, it is not listed in my |
But it should only change which files are modified by RuboCop gradual, not which files are "found", right? It has to be able to, at minimum, find every file that RuboCop vanilla can find, so that it can generate a hash of the file to track in the .lock. I guess that's my core issue. The .lock has nearly 100 fewer files in it than vanilla rubocop is evaluating. |
@skryukov The number of files inspected is still changing wildly in unexpected ways. I'll update this with |
I am using the rubocop-gradual shim, so it runs instead of the standard rubocop command normally.
When I run:
it only prints the list of files that would be processed.
If I instead run:
It runs rubocop gradual ignoring the
--list
option entirely.Is this intentional?
The text was updated successfully, but these errors were encountered: