forked from buildgroundwork/groundwork-style
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrubocop_rspec.yml
117 lines (86 loc) · 1.8 KB
/
rubocop_rspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
require: rubocop-rspec
AllCops:
Include:
- '**/*_spec.rb'
RSpec/Be:
Enabled: false
RSpec/BeEq:
Enabled: true
RSpec/BeNil:
Enabled: true
RSpec/ChangeByZero:
Enabled: true
RSpec/ContextWording:
Prefixes:
- when
- with
- without
- if
- unless
- 'on'
- which
- that
- and
- after
- before
- for
RSpec/DescribeClass:
Exclude:
- spec/views/**/*
RSpec/EmptyLineAfterExample:
Enabled: false
RSpec/EmptyLineAfterFinalLet:
Enabled: false
RSpec/EmptyLineAfterHook:
Enabled: false
RSpec/EmptyLineAfterSubject:
Enabled: false
# Be lenient on long examples that have large arrays, hashes, or heredocs
RSpec/ExampleLength:
Max: 10
CountAsOne:
- array
- hash
- heredoc
RSpec/ExampleWording:
Exclude:
- spec/support/**/*
RSpec/ExcessiveDocstringSpacing:
Enabled: true
RSpec/ExpectInHook:
Enabled: false
# We aren't using FactoryBot
RSpec/FactoryBot/SyntaxMethods:
Enabled: false
RSpec/IdenticalEqualityAssertion:
Enabled: true
RSpec/ImplicitBlockExpectation:
Enabled: false
RSpec/ImplicitExpect:
EnforcedStyle: should
RSpec/ImplicitSubject:
EnforcedStyle: single_statement_only
RSpec/ItBehavesLike:
EnforcedStyle: it_should_behave_like
RSpec/MultipleExpectations:
Exclude:
- spec/support/**/*
# We see no reason to artificially limit the number of calls to `let`. In some
# case multiple `let` calls may make complete sense; we leave this up to the
# judgement of the implementer.
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/NestedGroups:
Max: 10
RSpec/Rails/AvoidSetupHook:
Enabled: true
RSpec/StubbedMock:
Enabled: true
RSpec/SubjectDeclaration:
Enabled: true
RSpec/VerifiedDoubleReference:
Enabled: true
RSpec/VerifiedDoubles:
Enabled: false