-
-
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
Regression on Exclude #757
Comments
According to
@yujinakayama Can you take a look? |
@jonas054 Sure. |
In my environment,
I guess the cause of the bug is in handling of absolute/relative paths. I'll fix this. @bbatsov By the way, I don't understand that |
Yes it was intentional, so I wouldn't exactly call this a regression. Before the change I made, strings were implicitly converted to regexps, now they are treated as globs. Relative paths were problematic to handle without keeping track of the config file from which the exclude/include originated, so I took a shortcut (matching only against the basename). Seems it wasn't a good idea, so feel free to fix it. @agrimm, until a better solution is present, this should work:
|
That example doesn't work -- I keep getting Every forward slash has to be escaped, and the entire regex needs to be wrapped in forward slashes. :( |
@tamird Indeed. I got slightly carried away. |
Exclude has regressed between 0.16.0 and 0.17.0
If I have the following bad code in lib/bad.rb:
And have the following .rubocop.yml configuration:
The Exclude is honoured in 0.16.0, but not in 0.17.0. This regression happens with other cops as well. (FlipFlop was introduced in 0.16.0, so it's not that the cop didn't exist in that version)
The text was updated successfully, but these errors were encountered: