Skip to content

Unrecognized cop Rspec when inherit together with action policy #1

@PedroAugustoRamalhoDuarte

Description

With this rubocop config

# rubocop.yml
inherit_gem:
  switchcop: rubocop.yml
  action_policy: config/rubocop-rspec.yml

When I run rubocop, it shows this error:

Error: unrecognized cop or department RSpec found in /home/pedro/.asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/action_policy-0.6.3/config/rubocop-rspec.yml

For workaround, adds this line in the start of rubocop.yml:

require:
  - rubocop-rspec

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions