Home > Software engineering >  How do I add rubocop-rails and rubocop-rspec to config?
How do I add rubocop-rails and rubocop-rspec to config?

Time:10-14

> bundle exec rubocop
The following RuboCop extension libraries are installed but not loaded in config:
  * rubocop-rails
  * rubocop-rspec

Where do I add these?

CodePudding user response:

Add the following to the top of your .rubocop.yml file

require:
  - rubocop-rails
  - rubocop-rspec
  • Related