Skip to content

Commit

Permalink
Clarify how to include several RuboCop extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Nov 5, 2020
1 parent f3849e0 commit 60afe4c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/modules/ROOT/pages/usage.adoc
@@ -1,16 +1,24 @@
= Usage

You need to tell RuboCop to load the RSpec extension. There are three
ways to do this:
You need to tell RuboCop to load the RSpec extension.
There are three ways to do this:

== RuboCop configuration file

Put this into your `.rubocop.yml`.
Put this into your `.rubocop.yml`:

----
require: rubocop-rspec
----

or, if you are using several extensions:

----
require:
- rubocop-rspec
- rubocop-performance
----

Now you can run `rubocop` and it will automatically load the RuboCop RSpec
cops together with the standard cops.

Expand Down

0 comments on commit 60afe4c

Please sign in to comment.