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

Error: unrecognized cop or department {{cop}} found in {{global vanilla rubocop config}} #956

Open
skull-squadron opened this issue Sep 5, 2022 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@skull-squadron
Copy link

Version:

  • Chef Workstation: 22.7.1006 (Stable)
    • Cookstyle 7.32.1 / RuboCop 1.25.1

Environment:

  • OS: macOS 12.5.1

Scenario:

Linting cookbooks

Steps to Reproduce:

  1. mkdir -p ~/.config/rubocop; echo 'Style/RedundantInitialize: { Enabled: true }' > ~/.config/rubocop/config.yml
  2. cookstyle

Expected Result:

  1. Ignore vanilla global rubocop config and not crash

Actual Result:

Error: unrecognized cop or department Style/RedundantInitialize found in {{home dir}}/.config/rubocop/config.yml
@skull-squadron skull-squadron added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant