-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Exclude not working as expected #1022
Comments
Which version of RuboCop are you running? It looks to me like you're following the instruction from the README file on the main page, which refers to the latest Use |
@jonas054 Yeah, I'm on |
@mockdeep If you run with |
@jonas054 That doesn't seem to respect |
When I set |
@mockdeep If you meant that you disabled But the other thing you found is a bug IMO. Auto-correct does not respect |
[Fix #1022] Make auto-correct honor Exclude for individual cops
I'm trying to exclude a bunch of files from the HashSyntax cop and running into some issues. My config looks like this:
When I run rubocop with these settings, I'm getting some really erratic behavior. Right now it is reporting every violation everywhere, without regard to the excludes. I was running it with
rubocop -a
and it would report back that 130 or so violations were fixed, when in fact it had fixed every violation in the app, again without regard to the excludes. I can't seem to get back to that state now, though. I've been trying some different patterns and getting different results.The text was updated successfully, but these errors were encountered: