@@ -10,16 +10,6 @@ AllCops:
10
10
- spec/factories/**/*.rb
11
11
- features/support/factories/**/*.rb
12
12
13
- RSpec/AnyInstance :
14
- Description : Check that instances are not being stubbed globally.
15
- Enabled : true
16
- StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AnyInstance
17
-
18
- RSpec/AroundBlock :
19
- Description : Checks that around blocks actually run the test.
20
- Enabled : true
21
- StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AroundBlock
22
-
23
13
RSpec/AlignLeftLetBrace :
24
14
Description : Checks that left braces for adjacent single line lets are aligned.
25
15
Enabled : false
@@ -30,6 +20,16 @@ RSpec/AlignRightLetBrace:
30
20
Enabled : false
31
21
StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AlignRightLetBrace
32
22
23
+ RSpec/AnyInstance :
24
+ Description : Check that instances are not being stubbed globally.
25
+ Enabled : true
26
+ StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AnyInstance
27
+
28
+ RSpec/AroundBlock :
29
+ Description : Checks that around blocks actually run the test.
30
+ Enabled : true
31
+ StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AroundBlock
32
+
33
33
RSpec/Be :
34
34
Description : Check for expectations where `be` is used without argument.
35
35
Enabled : true
@@ -63,16 +63,6 @@ RSpec/DescribeClass:
63
63
Enabled : true
64
64
StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass
65
65
66
- RSpec/DescribedClass :
67
- Description : Checks that tests use `described_class`.
68
- SkipBlocks : false
69
- Enabled : true
70
- EnforcedStyle : described_class
71
- SupportedStyles :
72
- - described_class
73
- - explicit
74
- StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
75
-
76
66
RSpec/DescribeMethod :
77
67
Description : Checks that the second argument to `describe` specifies a method.
78
68
Enabled : true
@@ -83,10 +73,15 @@ RSpec/DescribeSymbol:
83
73
Enabled : true
84
74
StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeSymbol
85
75
86
- RSpec/IteratedExpectation :
87
- Description : Check that `all` matcher is used instead of iterating over an array.
76
+ RSpec/DescribedClass :
77
+ Description : Checks that tests use `described_class`.
78
+ SkipBlocks : false
88
79
Enabled : true
89
- StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IteratedExpectation
80
+ EnforcedStyle : described_class
81
+ SupportedStyles :
82
+ - described_class
83
+ - explicit
84
+ StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
90
85
91
86
RSpec/EmptyExampleGroup :
92
87
Description : Checks if an example group does not include any tests.
@@ -240,6 +235,11 @@ RSpec/ItBehavesLike:
240
235
- it_should_behave_like
241
236
StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ItBehavesLike
242
237
238
+ RSpec/IteratedExpectation :
239
+ Description : Check that `all` matcher is used instead of iterating over an array.
240
+ Enabled : true
241
+ StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IteratedExpectation
242
+
243
243
RSpec/LeadingSubject :
244
244
Description : Enforce that subject is the first definition in the test.
245
245
Enabled : true
@@ -369,6 +369,16 @@ RSpec/ReturnFromStub:
369
369
- block
370
370
StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReturnFromStub
371
371
372
+ RSpec/ScatteredLet :
373
+ Description : Checks for let scattered across the example group.
374
+ Enabled : true
375
+ StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet
376
+
377
+ RSpec/ScatteredSetup :
378
+ Description : Checks for setup scattered across multiple hooks in an example group.
379
+ Enabled : true
380
+ StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup
381
+
372
382
RSpec/SharedContext :
373
383
Description : Checks for proper shared_context and shared_examples usage.
374
384
Enabled : true
@@ -384,16 +394,6 @@ RSpec/SingleArgumentMessageChain:
384
394
Enabled : true
385
395
StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SingleArgumentMessageChain
386
396
387
- RSpec/ScatteredLet :
388
- Description : Checks for let scattered across the example group.
389
- Enabled : true
390
- StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet
391
-
392
- RSpec/ScatteredSetup :
393
- Description : Checks for setup scattered across multiple hooks in an example group.
394
- Enabled : true
395
- StyleGuide : http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup
396
-
397
397
RSpec/SubjectStub :
398
398
Description : Checks for stubbed test subjects.
399
399
Enabled : true
0 commit comments