Skip to content
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

Allow departments to be enabled/disabled by users #935

Merged
merged 1 commit into from Jan 24, 2022

Commits on Jan 22, 2022

  1. Allow departments to be enabled/disabled by users

    Over in rubocop/rubocop#9752 we figured out
    that the reason end-users can't enable/disable Cookstyle departments is
    because `Enabled` isn't in the config and thus [can't be
    overridden](rubocop/rubocop#9752 (comment)).
    
    This change will allow a user to not only do the obvious:
    
    ```yaml
    Chef/Correctness:
      Enabled: false
    ```
    
    But more interestingly do something like this:
    
    ```yaml
    AllCops:
      DisabledByDefault: true
    
    Chef/Correctness:
      Enabled: true
    ```
    
    CC @jonas054
    
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    jaymzh committed Jan 22, 2022
    Configuration menu
    Copy the full SHA
    d663054 View commit details
    Browse the repository at this point in the history