-
Notifications
You must be signed in to change notification settings - Fork 1
/
rubocop-rspec.yml
168 lines (129 loc) · 4.85 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#
## https://docs.rubocop.org/projects/rspec/en/latest/
#
require: rubocop-rspec
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspeccontextwording
RSpec/ContextWording:
Prefixes:
- and
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecdescribeclass
RSpec/DescribeClass:
Exclude:
- "**/spec/requests/**/*.rb"
- "**/spec/system/**/*.rb"
- "**/spec/features/**/*.rb"
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecexamplelength
RSpec/ExampleLength:
Exclude:
- "**/spec/requests/**/*.rb"
- "**/spec/system/**/*.rb"
- "**/spec/features/**/*.rb"
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecimplicitsubject
RSpec/ImplicitSubject:
EnforcedStyle: single_statement_only
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecmultipleexpectations
RSpec/MultipleExpectations:
Exclude:
- "**/spec/requests/**/*.rb"
- "**/spec/system/**/*.rb"
- "**/spec/features/**/*.rb"
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecnestedgroups
RSpec/NestedGroups:
Max: 5
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecstubbedmock
RSpec/StubbedMock:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rails.html#railshttpstatus
RSpec/Rails/HttpStatus:
EnforcedStyle: numeric
# https://docs.rubocop.org/rubocop-rspec/cops_rspec/rails.html#rspecrailsavoidsetuphook
RSpec/Rails/AvoidSetupHook:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecidenticalequalityassertion
RSpec/IdenticalEqualityAssertion:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecexcessivedocstringspacing
RSpec/ExcessiveDocstringSpacing:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecsubjectdeclaration
RSpec/SubjectDeclaration:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecbeeq
RSpec/BeEq:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecbenil
RSpec/BeNil:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecverifieddoublereference
RSpec/VerifiedDoubleReference:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecchangebyzero
RSpec/ChangeByZero:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailshavehttpstatus
RSpec/Rails/HaveHttpStatus:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnoexpectationexample
RSpec/NoExpectationExample:
Enabled: false
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecclasscheck
RSpec/ClassCheck:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailsinferredspectype
RSpec/Rails/InferredSpecType:
Enabled: false
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecsortmetadata
RSpec/SortMetadata:
Enabled: false
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecduplicatedmetadata
RSpec/DuplicatedMetadata:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecpendingwithoutreason
RSpec/PendingWithoutReason:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailsminitestassertions
RSpec/Rails/MinitestAssertions:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecredundantaround
RSpec/RedundantAround:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailstravelaround
RSpec/Rails/TravelAround:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspeccontainexactly
RSpec/ContainExactly:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmatcharray
RSpec/MatchArray:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecskipblockinsideexample
RSpec/SkipBlockInsideExample:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecindexedlet
RSpec/IndexedLet:
Enabled: true
Max: 3
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecbeempty
RSpec/BeEmpty:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailsnegationbevalid
RSpec/Rails/NegationBeValid:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecreceivemessages
RSpec/ReceiveMessages:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecemptymetadata
RSpec/EmptyMetadata:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspeceq
RSpec/Eq:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmetadatastyle
RSpec/MetadataStyle:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathformat
RSpec/SpecFilePathFormat:
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathsuffix
RSpec/SpecFilePathSuffix:
Enabled: true