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

Unrecognized cop Rspec when inherit together with action policy #1

Open
PedroAugustoRamalhoDuarte opened this issue Dec 22, 2022 · 0 comments

Comments

@PedroAugustoRamalhoDuarte
Copy link
Member

PedroAugustoRamalhoDuarte commented Dec 22, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant