Skip to content

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

@skull-squadron

Description

@skull-squadron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UntriagedAn issue that has yet to be triaged.Type: BugDoes not work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions