You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be very useful for Rubocop to be able to supported hierarchical/nested departments.
For example, if I have a department MyExtension/Foo and MyExtension/Bar it would be useful to be able to enable/disable MyExtension as a whole,
In particular this comes up with things like Cookstyle which is a tool built on top of rubocop to do Chef correctness linting. They have many departments all of the form Chef/. It would be useful to be able to turn all of those on or off.
In my particular case since for standard ruby-correctness, I tend to stick much closer to Rubocop defaults than Cookstyle defaults, but Cookstyle includes a ton of its own defaults for rubocop rules, for my cookstyle runs, I actually want to disable all rules, then enable all Chef/* rules, ala something like this:
Support for top level departments is added, but there's no
support for arbitrary levels of departments at this point.
I.e., custom cops can be under various departments, which in
turn a placed under a common top level department.
After this change it's possible to, for example, disable all
cops in the cookstyle gem by adding to user configuration:
```
Chef:
Enabled: false
```
Note! Only the `Enabled` parameter is supported. Setting other
parameters such as `Severity` on the top level (when there are
two department levels) will silently fail. No warning is shown.
Is your feature request related to a problem? Please describe.
It would be very useful for Rubocop to be able to supported hierarchical/nested departments.
For example, if I have a department MyExtension/Foo and MyExtension/Bar it would be useful to be able to enable/disable MyExtension as a whole,
In particular this comes up with things like Cookstyle which is a tool built on top of rubocop to do Chef correctness linting. They have many departments all of the form Chef/. It would be useful to be able to turn all of those on or off.
In my particular case since for standard ruby-correctness, I tend to stick much closer to Rubocop defaults than Cookstyle defaults, but Cookstyle includes a ton of its own defaults for rubocop rules, for my cookstyle runs, I actually want to disable all rules, then enable all Chef/* rules, ala something like this:
Unfortunately today I have to list every single department manually and if they add one, I have to add it to my config.
Additional context
See further discussion of this in #9752
The text was updated successfully, but these errors were encountered: