chef / cookstyle

A linting tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, and logic mistakes in your code.
Apache License 2.0
107 stars 54 forks source link

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

Open skull-squadron opened 2 years ago

skull-squadron commented 2 years ago

Version:

Environment:

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