-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Version 2.3.1+ doesn't seem to respect "inherit_mode" #122
Comments
Also faced this issue. Putting |
Hi there. Any news on this? |
I can confirm version |
Same issue here. I have no clue about Rubocop extensions, but I suspect that the So, if you would just use But that is not possible, because it wouldn't load all the code for the necessary Cops. I suspect that merging the config happens somewhere here. The merge only takes care of merging keys inside the hash, not the values of the keys (they are replaced). So, since the exclusion list is a list, it is just overriden... I found this PR in Rubocop which seems to deal with this, maybe this interferes because a related method is monkey patched by rubocop-rails? |
I can confirm version |
Fixes rubocop#122. `Exclude` defined in RuboCop core was not inherited. https://github.com/rubocop-hq/rubocop/blob/v0.79.0/config/default.yml#L60-L64 This PR fixes `Exclude` paths that were not inherited. This bug was caused by rubocop#108.
Fixes rubocop#122. `Exclude` defined in RuboCop core was not inherited. https://github.com/rubocop-hq/rubocop/blob/v0.79.0/config/default.yml#L60-L64 This PR fixes `Exclude` paths that were not inherited. This bug was caused by rubocop#108.
[Fix #122] Fix `Exclude` paths that were not inherited
Thanks @koic, but the issue still happens on version |
I will release RuboCop Rails 2.4.2 soon. It will be fixed in that version. |
Sorry @koic - I looked at the CHANGELOG and thought 2.4.1 included this fix. My bad 🤦♂️ |
FYI, RuboCop Rails 2.4.2 has been released. Thank you! |
Expected behavior
Since
rubocop-rails
2.3.1 (also tested with 2.3.2), Rubocop is complaining about some offenses that should be ignored by default (node_modules/node-sass/src/libsass/contrib/libsass.spec
) for example.rubocop-rails
2.3.0 and previous versions didn't have this issue and I believe it started after this change.Actual behavior
As I'm using
inherit_mode
, Rubocop shouldn't raise any offenses:However, it does (after updating
rubocop-rails
), please see the following example.Steps to reproduce the problem
This is my
.rubocop.yml
:In order to reproduce the issue:
RuboCop version
Please let me know if I can provide more info in order to help. Thank you.
The text was updated successfully, but these errors were encountered: