Skip to content

Commit 60afe4c

Browse files
committed
Clarify how to include several RuboCop extensions
1 parent f3849e0 commit 60afe4c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/modules/ROOT/pages/usage.adoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
= Usage
22

3-
You need to tell RuboCop to load the RSpec extension. There are three
4-
ways to do this:
3+
You need to tell RuboCop to load the RSpec extension.
4+
There are three ways to do this:
55

66
== RuboCop configuration file
77

8-
Put this into your `.rubocop.yml`.
8+
Put this into your `.rubocop.yml`:
99

1010
----
1111
require: rubocop-rspec
1212
----
1313

14+
or, if you are using several extensions:
15+
16+
----
17+
require:
18+
- rubocop-rspec
19+
- rubocop-performance
20+
----
21+
1422
Now you can run `rubocop` and it will automatically load the RuboCop RSpec
1523
cops together with the standard cops.
1624

0 commit comments

Comments
 (0)