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
Autogenconfig doesn't exclude RSpec/NestedGroups #7484
Comments
|
@koic I believe the As far as I understand, if there's a setting in I'm not sure if it's a problem with |
Also, I think it's with the way the auto-gen works. When auto-gen has excludes, they're ignored fine. And can be combined with a rule override. When auto-gen has a rule override, and you provide a more recessive rule override then the issue occurs. i.e.
combines with
BUT
DOES NOT combine with
|
@pirj Oops. Thanks for your explanation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
I think this is "working as intended" though confusing for the auto-gen case.
Some quick (breaking) changes that could fix this:
I think the most robust/user-friendly fix would be to separate |
Oh, right, good point! We could introduce |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
The issue isn't the inheritance order per sé. But the way in which the auto gen is being generated. In my eyes, auto gen means the following.
not ....
Maybe for auto-gen instead of making a "numerical" value which won't work due to the reasons specified above. It just disables said cop. Or provide a massive exclude list as I illustrated at the top. I'm indifferent to "what" the solution is, because I guess when running auto-gen, I'm just in a "Get this thing fixed in 10seconds" mood. Not a "How do I fix this?" mood. |
Note to self. Re-test this with rubocop |
I've added this here as it feels like a core rubocop issue (not from rubocop/rspec)
When you have both a manually defined config and an autogenerated config for RSpec/NestedGroups -
rubocop
will always failExpected/Actual behavior
.rubocop.yml
torubocop --auto-gen-config
rubocop
Steps to reproduce the problem
You can clone the codebase at https://github.com/site-prism/site_prism Then add a manual value of 4 to the
.rubocop.yml
fileRuboCop 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: