-
Notifications
You must be signed in to change notification settings - Fork 280
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
Reek config inheritance #1434
Comments
Oh, a PR would be highly appreciated ;) |
Yep, that's right. It will be overridden. Ex. it could be enabled in the parent and disabled in the descendant. It will work, vise versa as well, have tested this.
Yes, should be fine, the schema validations will still be taken into account. I'll try to PR this so you guys could review and give some advice if needed, will appreciate. It could also be smth like |
Sounds great, looking forward to this! |
@dimitrovv @troessner Awesome stuff. I've found RuboCop's addition of an In the spirit of DRY, I've found myself moving a lot of stuff into gems, so being able to reference Reek config in an included gem would be pretty great. Just a thought. Great work and thanks! |
@junket I'd really like to see a concrete example of that, since the documentation in the rubocop PR is rather hand-wavey. |
I've played a bit with the reek configuration and noticed it does not support config inheritance.
We've several projects, which have almost the same reek configuration with some exceptions/customization.
It'd be good to inherit the reek configuration from another reek config and override it then to DRY it etc.
It could be smth like that
ancestor/.reek.yml
descendant/.reek.yml
This could be done by changing the way how the reek configuration is loaded in ConfigurationFileFinder#load_from_file
->
I'd like to PR this because we actively use reek and need this inheritance. What do you guys @troessner @mvz think of this?
The text was updated successfully, but these errors were encountered: