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

[Fix #9752] Improve error message for top level department #9936

Merged
merged 1 commit into from Jul 19, 2021

Commits on Jul 16, 2021

  1. [Fix rubocop#9752] Improve error message for top level department

    When there are cop departments that seem to have a structure, like in
    the cookstyle gem where departments are named `Chef/Style`,
    `Chef/Correctness`, etc., it's easy to assume that there is a `Chef`
    department that can disable all departments under it. This is not the
    case, but the error message
    `Error: unrecognized cop Chef found in .cookstyle.yml` is not
    informative enough.
    
    If an unrecognized cop or department is the first part of existing
    departments, we list the existing departments. This should help the user
    realize what needs to be changed.
    
    Also, we change the wording of `unrecognized cop` to
    `unrecognized cop or department`, and extend the did-you-mean
    functionality to also look for similar department names.
    jonas054 committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    e4147c8 View commit details
    Browse the repository at this point in the history