rubocop-rubomatic 1.6.0.rc.pre.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +160 -42
- data/config/rspec.yml +425 -0
- data/config/style.yml +2 -1
- data/lib/rubocop/cop/rubomatic/generator/cop_readme_injector.rb +1 -1
- data/lib/rubocop/rubomatic/plugin.rb +1 -1
- data/lib/rubocop/rubomatic/version.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a94ee250a5abc5d5c306efbc973ac5eeb065c288c49df2cd5f5381af468af846
|
4
|
+
data.tar.gz: 87f07fcf18b8d5b662d259014274607e3b71070b6388cca3150917d67d3bbffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c478d2eb1d1d8343c4683c34dfb9eef7232e2cad336b578fe4cf3b12967363c86efdccf1804ad7ac659f5bb791cfda26e4436b6023132606c2bf26d1b63b5a3
|
7
|
+
data.tar.gz: 424e583710f8cb098c03b9725cee231a6d32c62b453fb144268f42719fa0e414cd41cce9c9ece803c3dcdba6f026430d5eb20fe14dd2262bd508e0501b930ab7
|
data/CHANGELOG.adoc
CHANGED
@@ -3,54 +3,172 @@
|
|
3
3
|
* Upgrade to ``ruobcop 1.76.1``
|
4
4
|
** This includes the change from ``require:`` to ``plugins:``.
|
5
5
|
While ``require:`` will still work, there will be a deprecation warning
|
6
|
-
** Set
|
7
|
-
|
8
|
-
|
9
|
-
** Enabled
|
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
|
-
|
6
|
+
** Set
|
7
|
+
*** ``Layout/LeadingCommentSpace/AllowSteepAnnotation`` to ``false``
|
8
|
+
*** ``Lint/DuplicateBranch/IgnoreDuplicateElseBranch`` to ``true``
|
9
|
+
** Enabled
|
10
|
+
*** ``Lint/ArrayLiteralInRegexp``
|
11
|
+
*** ``Lint/ConstantReassignment``
|
12
|
+
*** ``Lint/CopDirectiveSyntax``
|
13
|
+
*** ``Lint/DuplicateSetElement``
|
14
|
+
*** ``Lint/HashNewWithKeywordArgumentsAsDefault``
|
15
|
+
*** ``Lint/NumericOperationWithConstantResult``
|
16
|
+
*** ``Lint/RedundantTypeConversion``
|
17
|
+
*** ``Lint/SharedMutableDefault``
|
18
|
+
*** ``Lint/SuppressedExceptionInNumberConversion``
|
19
|
+
*** ``Lint/UnescapedBracketInRegexp``
|
20
|
+
*** ``Lint/UselessConstantScoping``
|
21
|
+
*** ``Lint/UselessDefaultValueArgument``
|
22
|
+
*** ``Lint/UselessDefined``
|
23
|
+
*** ``Lint/UselessNumericOperation``
|
24
|
+
*** ``Lint/UselessOr``
|
25
|
+
*** ``Naming/PredicateMethod``
|
26
|
+
*** ``Style/AmbiguousEndlessMethodDefinition``
|
27
|
+
*** ``Style/BitwisePredicate``
|
28
|
+
*** ``Style/ComparableBetween``
|
29
|
+
*** ``Style/CombinableDefined``
|
30
|
+
*** ``Style/DigChain``
|
31
|
+
*** ``Style/EmptyStringInsideInterpolation``
|
32
|
+
*** ``Style/FileNull``
|
33
|
+
*** ``Style/FileTouch``
|
34
|
+
*** ``Style/HashFetchChain``
|
35
|
+
*** ``Style/HashSlice``
|
36
|
+
*** ``Style/ItAssignment``
|
37
|
+
*** ``Style/ItBlockParameter``
|
38
|
+
*** ``Style/KeywordArgumentsMergin``
|
39
|
+
*** ``Style/RedundantArrayFlatten``
|
40
|
+
*** ``Style/RedundantFormat``
|
41
|
+
*** ``Style/RedundantInterpolationUnfreeze``
|
40
42
|
** Disabled ``Style/SafeNavigationChainLength``
|
41
43
|
* Added ``rack_attack.rb`` to exclude list for ``Style/IpAddresses``
|
42
44
|
* Upgraded to ``rubocop-performance 1.25.0``
|
43
|
-
** Enabled
|
44
|
-
|
45
|
+
** Enabled
|
46
|
+
*** ``Performance/StringBytesize``
|
47
|
+
*** ``Performance/ZipWithoutBlock``
|
45
48
|
* Added ``rubocop-packaging 0.6.0``
|
46
49
|
** Enabled ``Packaging/GemspecGit``
|
50
|
+
* Added ``rubocop-rspec 3.6.0``
|
51
|
+
** Did **not** enable
|
52
|
+
*** ``RSpec/AlignLeftLetBrace``
|
53
|
+
*** ``RSpec/AlignRightLetBrace``
|
54
|
+
*** ``RSpec/Dialect``
|
55
|
+
*** ``RSpec/Pending``
|
56
|
+
** Enabled
|
57
|
+
*** ``RSpec/AnyInstance``
|
58
|
+
*** ``RSpec/AroundBlock``
|
59
|
+
*** ``RSpec/Be``
|
60
|
+
*** ``RSpec/BeEmpty``
|
61
|
+
*** ``RSpec/BeEq``
|
62
|
+
*** ``RSpec/BeEql``
|
63
|
+
*** ``RSpec/BeNil``
|
64
|
+
*** ``RSpec/BeforeAfterAll``
|
65
|
+
*** ``RSpec/ChangeByZero``
|
66
|
+
*** ``RSpec/ClassCheck``
|
67
|
+
*** ``RSpec/ContainExactly``
|
68
|
+
*** ``RSpec/ContextMethod``
|
69
|
+
*** ``RSpec/ContextWording``
|
70
|
+
*** ``RSpec/DescribeClass``
|
71
|
+
*** ``RSpec/DescribeMethod``
|
72
|
+
*** ``RSpec/DescribeSymbol``
|
73
|
+
*** ``RSpec/DescribedClass``
|
74
|
+
*** ``RSpec/DescribedClassModuleWrapping``
|
75
|
+
*** ``RSpec/DuplicatedMetadata``
|
76
|
+
*** ``RSpec/EmptyExampleGroup``
|
77
|
+
*** ``RSpec/EmptyHook``
|
78
|
+
*** ``RSpec/EmptyLineAfterExample``
|
79
|
+
*** ``RSpec/EmptyLineAfterExampleGroup``
|
80
|
+
*** ``RSpec/EmptyLineAfterFinalLet``
|
81
|
+
*** ``RSpec/EmptyLineAfterHook``
|
82
|
+
*** ``RSpec/EmptyLineAfterSubject``
|
83
|
+
*** ``RSpec/EmptyMetadata``
|
84
|
+
*** ``RSpec/EmptyOutput``
|
85
|
+
*** ``RSpec/Eq``
|
86
|
+
*** ``RSpec/ExampleLength``
|
87
|
+
*** ``RSpec/ExampleWithoutDescription``
|
88
|
+
*** ``RSpec/ExampleWording``
|
89
|
+
*** ``RSpec/ExcessiveDocstringSpacing``
|
90
|
+
*** ``RSpec/ExpectActual``
|
91
|
+
*** ``RSpec/ExpectChange``
|
92
|
+
*** ``RSpec/ExpectInHook``
|
93
|
+
*** ``RSpec/ExpectInLet``
|
94
|
+
*** ``RSpec/ExpectOutput``
|
95
|
+
*** ``RSpec/Focus``
|
96
|
+
*** ``RSpec/HookArgument``
|
97
|
+
*** ``RSpec/HooksBeforeExamples``
|
98
|
+
*** ``RSpec/IdenticalEqualityAssertion``
|
99
|
+
*** ``RSpec/ImplicitBlockExpectation``
|
100
|
+
*** ``RSpec/ImplicitExpect``
|
101
|
+
*** ``RSpec/ImplicitSubject``
|
102
|
+
*** ``RSpec/IncludeExamples``
|
103
|
+
*** ``RSpec/IndexedLet``
|
104
|
+
*** ``RSpec/InstanceSpy``
|
105
|
+
*** ``RSpec/InstanceVariable``
|
106
|
+
*** ``RSpec/IsExpectedSpecify``
|
107
|
+
*** ``RSpec/ItBehavesLike``
|
108
|
+
*** ``RSpec/IteratedExpectation``
|
109
|
+
*** ``RSpec/LeadingSubject``
|
110
|
+
*** ``RSpec/LeakyConstantDeclaration``
|
111
|
+
*** ``RSpec/LetBeforeExamples``
|
112
|
+
*** ``RSpec/LetSetup``
|
113
|
+
*** ``RSpec/MatchArray``
|
114
|
+
*** ``RSpec/MessageChain``
|
115
|
+
*** ``RSpec/MessageExpectation``
|
116
|
+
*** ``RSpec/MessageSpies``
|
117
|
+
*** ``RSpec/MetadataStyle``
|
118
|
+
*** ``RSpec/MissingExampleGroupArgument``
|
119
|
+
*** ``RSpec/MissingExpectationTargetMethod``
|
120
|
+
*** ``RSpec/MultipleDescribes``
|
121
|
+
*** ``RSpec/MultipleExpectations``
|
122
|
+
*** ``RSpec/MultipleMemoizedHelpers``
|
123
|
+
*** ``RSpec/MultipleSubjects``
|
124
|
+
*** ``RSpec/NamedSubject``
|
125
|
+
*** ``RSpec/NestedGroups``
|
126
|
+
*** ``RSpec/NoExpectationExample``
|
127
|
+
*** ``RSpec/NotToNot``
|
128
|
+
*** ``RSpec/OverwritingSetup``
|
129
|
+
*** ``RSpec/PendingWithoutReason``
|
130
|
+
*** ``RSpec/PredicateMatcher``
|
131
|
+
*** ``RSpec/ReceiveCounts``
|
132
|
+
*** ``RSpec/ReceiveMessages``
|
133
|
+
*** ``RSpec/ReceiveNever``
|
134
|
+
*** ``RSpec/RedundantAround``
|
135
|
+
*** ``RSpec/RedundantPredicateMatcher``
|
136
|
+
*** ``RSpec/RemoveConst``
|
137
|
+
*** ``RSpec/RepeatedDescription``
|
138
|
+
*** ``RSpec/RepeatedExample``
|
139
|
+
*** ``RSpec/RepeatedExampleGroupBody``
|
140
|
+
*** ``RSpec/RepeatedExampleGroupDescription``
|
141
|
+
*** ``RSpec/RepeatedIncludeExample``
|
142
|
+
*** ``RSpec/RepeatedSubjectCall``
|
143
|
+
*** ``RSpec/ReturnFromStub``
|
144
|
+
*** ``RSpec/ScatteredLet``
|
145
|
+
*** ``RSpec/ScatteredSetup``
|
146
|
+
*** ``RSpec/SharedContext``
|
147
|
+
*** ``RSpec/SharedExamples``
|
148
|
+
*** ``RSpec/SingleArgumentMessageChain``
|
149
|
+
*** ``RSpec/SkipBlockInsideExample``
|
150
|
+
*** ``RSpec/SortMetadata``
|
151
|
+
*** ``RSpec/SpecFilePathFormat``
|
152
|
+
*** ``RSpec/SpecFilePathSuffix``
|
153
|
+
*** ``RSpec/StubbedMock``
|
154
|
+
*** ``RSpec/SubjectDeclaration``
|
155
|
+
*** ``RSpec/SubjectStub``
|
156
|
+
*** ``RSpec/UndescriptiveLiteralsDescription``
|
157
|
+
*** ``RSpec/UnspecifiedException``
|
158
|
+
*** ``RSpec/VariableDefinition``
|
159
|
+
*** ``RSpec/VariableName``
|
160
|
+
*** ``RSpec/VerifiedDoubleReference``
|
161
|
+
*** ``RSpec/VerifiedDoubles``
|
162
|
+
*** ``RSpec/VoidExpect``
|
163
|
+
*** ``RSpec/Yield``
|
47
164
|
* Added ``rubocop-thread_safety 0.7.2``
|
48
|
-
** Enabled
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
165
|
+
** Enabled
|
166
|
+
*** ``ThreadSafety/ClassAndModuleAttributes``
|
167
|
+
*** ``ThreadSafety/ClassInstanceVariable``
|
168
|
+
*** ``ThreadSafety/DirChdir``
|
169
|
+
*** ``ThreadSafety/MutableClassInstanceVariable``
|
170
|
+
*** ``ThreadSafety/NewThread``
|
171
|
+
*** ``ThreadSafety/RackMiddlewareInstanceVariable``
|
54
172
|
|
55
173
|
== 1.5.1 (2024-10-22)
|
56
174
|
|
data/config/rspec.yml
ADDED
@@ -0,0 +1,425 @@
|
|
1
|
+
plugins: rubocop-rspec
|
2
|
+
|
3
|
+
RSpec/AlignLeftLetBrace:
|
4
|
+
Enabled: false
|
5
|
+
|
6
|
+
RSpec/AlignRightLetBrace:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
RSpec/AnyInstance:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
RSpec/AroundBlock:
|
13
|
+
Enabled: true
|
14
|
+
|
15
|
+
RSpec/Be:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
RSpec/BeEmpty:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
RSpec/BeEq:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
RSpec/BeEql:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
RSpec/BeNil:
|
28
|
+
Enabled: true
|
29
|
+
EnforcedStyle: be_nil
|
30
|
+
|
31
|
+
RSpec/BeforeAfterAll:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
RSpec/ChangeByZero:
|
35
|
+
Enabled: true
|
36
|
+
NegatedMatcher: ~
|
37
|
+
|
38
|
+
RSpec/ClassCheck:
|
39
|
+
Enabled: true
|
40
|
+
EnforcedStyle: be_a
|
41
|
+
|
42
|
+
RSpec/ContainExactly:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
RSpec/ContextMethod:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
RSpec/ContextWording:
|
49
|
+
Enabled: true
|
50
|
+
Prefixes:
|
51
|
+
- when
|
52
|
+
- with
|
53
|
+
- without
|
54
|
+
AllowedPatterns: [ ]
|
55
|
+
|
56
|
+
RSpec/DescribeClass:
|
57
|
+
Enabled: true
|
58
|
+
Exclude:
|
59
|
+
- '**/spec/features/**/*'
|
60
|
+
- '**/spec/requests/**/*'
|
61
|
+
- '**/spec/routing/**/*'
|
62
|
+
- '**/spec/system/**/*'
|
63
|
+
- '**/spec/views/**/*'
|
64
|
+
IgnoredMetadata:
|
65
|
+
type:
|
66
|
+
- channel
|
67
|
+
- controller
|
68
|
+
- helper
|
69
|
+
- job
|
70
|
+
- mailer
|
71
|
+
- model
|
72
|
+
- request
|
73
|
+
- routing
|
74
|
+
- view
|
75
|
+
- feature
|
76
|
+
- system
|
77
|
+
- mailbox
|
78
|
+
- aruba
|
79
|
+
- task
|
80
|
+
|
81
|
+
RSpec/DescribeMethod:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
RSpec/DescribeSymbol:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
RSpec/DescribedClass:
|
88
|
+
Enabled: true
|
89
|
+
EnforcedStyle: described_class
|
90
|
+
OnlyStaticConstants: true
|
91
|
+
SkipBlocks: false
|
92
|
+
|
93
|
+
RSpec/DescribedClassModuleWrapping:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
RSpec/Dialect:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
RSpec/DuplicatedMetadata:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
RSpec/EmptyExampleGroup:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
RSpec/EmptyHook:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
RSpec/EmptyLineAfterExample:
|
109
|
+
Enabled: true
|
110
|
+
AllowConsecutiveOneLiners: false
|
111
|
+
|
112
|
+
RSpec/EmptyLineAfterExampleGroup:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
RSpec/EmptyLineAfterFinalLet:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
RSpec/EmptyLineAfterHook:
|
119
|
+
Enabled: true
|
120
|
+
AllowConsecutiveOneLiners: false
|
121
|
+
|
122
|
+
RSpec/EmptyLineAfterSubject:
|
123
|
+
Enabled: true
|
124
|
+
|
125
|
+
RSpec/EmptyMetadata:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
RSpec/EmptyOutput:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
RSpec/Eq:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
RSpec/ExampleLength:
|
135
|
+
Enabled: true
|
136
|
+
Max: 5
|
137
|
+
CountAsOne:
|
138
|
+
- array
|
139
|
+
- hash
|
140
|
+
- heredoc
|
141
|
+
- method_call
|
142
|
+
|
143
|
+
RSpec/ExampleWithoutDescription:
|
144
|
+
Enabled: true
|
145
|
+
EnforcedStyle: single_line_only
|
146
|
+
|
147
|
+
RSpec/ExampleWording:
|
148
|
+
Enabled: true
|
149
|
+
DisallowedExamples:
|
150
|
+
- works
|
151
|
+
|
152
|
+
RSpec/ExcessiveDocstringSpacing:
|
153
|
+
Enabled: true
|
154
|
+
|
155
|
+
RSpec/ExpectActual:
|
156
|
+
Enabled: true
|
157
|
+
Exclude:
|
158
|
+
- '**/spec/routing/**/*'
|
159
|
+
|
160
|
+
RSpec/ExpectChange:
|
161
|
+
Enabled: true
|
162
|
+
EnforcedStyle: block
|
163
|
+
|
164
|
+
RSpec/ExpectInHook:
|
165
|
+
Enabled: true
|
166
|
+
|
167
|
+
RSpec/ExpectInLet:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
RSpec/ExpectOutput:
|
171
|
+
Enabled: true
|
172
|
+
|
173
|
+
RSpec/Focus:
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
RSpec/HookArgument:
|
177
|
+
Enabled: true
|
178
|
+
EnforcedStyle: implicit
|
179
|
+
|
180
|
+
|
181
|
+
RSpec/HooksBeforeExamples:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
RSpec/IdenticalEqualityAssertion:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
RSpec/ImplicitBlockExpectation:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
RSpec/ImplicitExpect:
|
191
|
+
Enabled: true
|
192
|
+
EnforcedStyle: is_expected
|
193
|
+
|
194
|
+
RSpec/ImplicitSubject:
|
195
|
+
Enabled: true
|
196
|
+
EnforcedStyle: single_line_only
|
197
|
+
|
198
|
+
RSpec/IncludeExamples:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
RSpec/IndexedLet:
|
202
|
+
Enabled: true
|
203
|
+
Max: 1
|
204
|
+
AllowedIdentifiers: [ ]
|
205
|
+
AllowedPatterns: [ ]
|
206
|
+
|
207
|
+
RSpec/InstanceSpy:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
RSpec/InstanceVariable:
|
211
|
+
Enabled: true
|
212
|
+
AssignmentOnly: false
|
213
|
+
|
214
|
+
RSpec/IsExpectedSpecify:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
RSpec/ItBehavesLike:
|
218
|
+
Enabled: true
|
219
|
+
EnforcedStyle: it_behaves_like
|
220
|
+
|
221
|
+
RSpec/IteratedExpectation:
|
222
|
+
Enabled: true
|
223
|
+
|
224
|
+
RSpec/LeadingSubject:
|
225
|
+
Enabled: true
|
226
|
+
|
227
|
+
RSpec/LeakyConstantDeclaration:
|
228
|
+
Enabled: true
|
229
|
+
|
230
|
+
RSpec/LetBeforeExamples:
|
231
|
+
Enabled: true
|
232
|
+
|
233
|
+
RSpec/LetSetup:
|
234
|
+
Enabled: true
|
235
|
+
|
236
|
+
RSpec/MatchArray:
|
237
|
+
Enabled: true
|
238
|
+
|
239
|
+
RSpec/MessageChain:
|
240
|
+
Enabled: true
|
241
|
+
|
242
|
+
RSpec/MessageExpectation:
|
243
|
+
Enabled: true
|
244
|
+
EnforcedStyle: expect
|
245
|
+
|
246
|
+
RSpec/MessageSpies:
|
247
|
+
Enabled: true
|
248
|
+
EnforcedStyle: have_received
|
249
|
+
|
250
|
+
RSpec/MetadataStyle:
|
251
|
+
Enabled: true
|
252
|
+
EnforcedStyle: symbol
|
253
|
+
|
254
|
+
RSpec/MissingExampleGroupArgument:
|
255
|
+
Enabled: true
|
256
|
+
|
257
|
+
RSpec/MissingExpectationTargetMethod:
|
258
|
+
Enabled: true
|
259
|
+
|
260
|
+
RSpec/MultipleDescribes:
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
RSpec/MultipleExpectations:
|
264
|
+
Enabled: true
|
265
|
+
Max: 1
|
266
|
+
|
267
|
+
RSpec/MultipleMemoizedHelpers:
|
268
|
+
Enabled: true
|
269
|
+
AllowSubject: true
|
270
|
+
Max: 5
|
271
|
+
|
272
|
+
RSpec/MultipleSubjects:
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
RSpec/NamedSubject:
|
276
|
+
Enabled: true
|
277
|
+
EnforcedStyle: always
|
278
|
+
IgnoreSharedExamples: true
|
279
|
+
|
280
|
+
RSpec/NestedGroups:
|
281
|
+
Enabled: true
|
282
|
+
Max: 3
|
283
|
+
AllowedGroups: [ ]
|
284
|
+
|
285
|
+
RSpec/NoExpectationExample:
|
286
|
+
Enabled: true
|
287
|
+
AllowedPatterns:
|
288
|
+
- ^expect_
|
289
|
+
- ^assert_
|
290
|
+
|
291
|
+
RSpec/NotToNot:
|
292
|
+
Enabled: true
|
293
|
+
EnforcedStyle: to_not
|
294
|
+
|
295
|
+
RSpec/OverwritingSetup:
|
296
|
+
Enabled: true
|
297
|
+
|
298
|
+
RSpec/Pending:
|
299
|
+
Enabled: false
|
300
|
+
|
301
|
+
RSpec/PendingWithoutReason:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
RSpec/PredicateMatcher:
|
305
|
+
Enabled: true
|
306
|
+
Strict: true
|
307
|
+
EnforcedStyle: inflected
|
308
|
+
AllowedExplicitMatchers: [ ]
|
309
|
+
|
310
|
+
RSpec/ReceiveCounts:
|
311
|
+
Enabled: true
|
312
|
+
|
313
|
+
RSpec/ReceiveMessages:
|
314
|
+
Enabled: true
|
315
|
+
|
316
|
+
RSpec/ReceiveNever:
|
317
|
+
Enabled: true
|
318
|
+
|
319
|
+
RSpec/RedundantAround:
|
320
|
+
Enabled: true
|
321
|
+
|
322
|
+
RSpec/RedundantPredicateMatcher:
|
323
|
+
Enabled: true
|
324
|
+
|
325
|
+
RSpec/RemoveConst:
|
326
|
+
Enabled: true
|
327
|
+
|
328
|
+
RSpec/RepeatedDescription:
|
329
|
+
Enabled: true
|
330
|
+
|
331
|
+
RSpec/RepeatedExample:
|
332
|
+
Enabled: true
|
333
|
+
|
334
|
+
RSpec/RepeatedExampleGroupBody:
|
335
|
+
Enabled: true
|
336
|
+
|
337
|
+
RSpec/RepeatedExampleGroupDescription:
|
338
|
+
Enabled: true
|
339
|
+
|
340
|
+
RSpec/RepeatedIncludeExample:
|
341
|
+
Enabled: true
|
342
|
+
|
343
|
+
RSpec/RepeatedSubjectCall:
|
344
|
+
Enabled: true
|
345
|
+
|
346
|
+
RSpec/ReturnFromStub:
|
347
|
+
Enabled: true
|
348
|
+
EnforcedStyle: and_return
|
349
|
+
|
350
|
+
RSpec/ScatteredLet:
|
351
|
+
Enabled: true
|
352
|
+
|
353
|
+
RSpec/ScatteredSetup:
|
354
|
+
Enabled: true
|
355
|
+
|
356
|
+
RSpec/SharedContext:
|
357
|
+
Enabled: true
|
358
|
+
|
359
|
+
RSpec/SharedExamples:
|
360
|
+
Enabled: true
|
361
|
+
EnforcedStyle: symbol
|
362
|
+
|
363
|
+
RSpec/SingleArgumentMessageChain:
|
364
|
+
Enabled: true
|
365
|
+
|
366
|
+
RSpec/SkipBlockInsideExample:
|
367
|
+
Enabled: true
|
368
|
+
|
369
|
+
RSpec/SortMetadata:
|
370
|
+
Enabled: true
|
371
|
+
|
372
|
+
RSpec/SpecFilePathFormat:
|
373
|
+
Enabled: true
|
374
|
+
Include:
|
375
|
+
- '**/*_spec.rb'
|
376
|
+
Exclude:
|
377
|
+
- '**/spec/routing/**/*'
|
378
|
+
CustomTransform:
|
379
|
+
RuboCop: rubocop
|
380
|
+
RSpec: rspec
|
381
|
+
IgnoreMethods: false
|
382
|
+
IgnoreMetadata:
|
383
|
+
type: routing
|
384
|
+
|
385
|
+
RSpec/SpecFilePathSuffix:
|
386
|
+
Enabled: true
|
387
|
+
Include:
|
388
|
+
- '**/*_spec*rb*'
|
389
|
+
- '**/spec/**/*'
|
390
|
+
|
391
|
+
RSpec/StubbedMock:
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
RSpec/SubjectDeclaration:
|
395
|
+
Enabled: true
|
396
|
+
|
397
|
+
RSpec/SubjectStub:
|
398
|
+
Enabled: true
|
399
|
+
|
400
|
+
RSpec/UndescriptiveLiteralsDescription:
|
401
|
+
Enabled: true
|
402
|
+
|
403
|
+
RSpec/UnspecifiedException:
|
404
|
+
Enabled: true
|
405
|
+
|
406
|
+
RSpec/VariableDefinition:
|
407
|
+
Enabled: true
|
408
|
+
EnforcedStyle: symbols
|
409
|
+
|
410
|
+
RSpec/VariableName:
|
411
|
+
Enabled: true
|
412
|
+
EnforcedStyle: snake_case
|
413
|
+
AllowedPatterns: [ ]
|
414
|
+
|
415
|
+
RSpec/VerifiedDoubleReference:
|
416
|
+
Enabled: true
|
417
|
+
|
418
|
+
RSpec/VerifiedDoubles:
|
419
|
+
Enabled: true
|
420
|
+
|
421
|
+
RSpec/VoidExpect:
|
422
|
+
Enabled: true
|
423
|
+
|
424
|
+
RSpec/Yield:
|
425
|
+
Enabled: true
|
data/config/style.yml
CHANGED
@@ -37,9 +37,10 @@ Style/AndOr:
|
|
37
37
|
|
38
38
|
Style/ArgumentsForwarding:
|
39
39
|
Enabled: true
|
40
|
-
AllowOnlyRestArgument: true
|
41
40
|
<% if ENV['RUBY_MAJOR'].to_f >= 3.2 %>
|
42
41
|
UseAnonymousForwarding: true
|
42
|
+
<% else %>
|
43
|
+
AllowOnlyRestArgument: true
|
43
44
|
<% end %>
|
44
45
|
|
45
46
|
Style/ArrayCoercion:
|
@@ -10,7 +10,7 @@ module RuboCop
|
|
10
10
|
def about
|
11
11
|
LintRoller::About.new(
|
12
12
|
name: 'rubocop-rubomatic',
|
13
|
-
version: VERSION
|
13
|
+
version: VERSION::STRING,
|
14
14
|
homepage: 'https://github.com/BrandsInsurance/rubocop-rubomatic/',
|
15
15
|
description: 'A collection of RuboCop cops to check for performance optimizations in Ruby code.'
|
16
16
|
)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rubomatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.0
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brands Insurance
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 1.25.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rubocop-rspec
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 3.6.0
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 3.6.0
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: rubocop-thread_safety
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,6 +120,7 @@ files:
|
|
106
120
|
- config/migration.yml
|
107
121
|
- config/naming.yml
|
108
122
|
- config/performance.yml
|
123
|
+
- config/rspec.yml
|
109
124
|
- config/rubocop.yml
|
110
125
|
- config/rubomatic/layout.yml
|
111
126
|
- config/rubomatic/rubocop.yml
|
@@ -147,9 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
162
|
version: 3.0.1
|
148
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
164
|
requirements:
|
150
|
-
- - "
|
165
|
+
- - ">="
|
151
166
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
167
|
+
version: '0'
|
153
168
|
requirements: []
|
154
169
|
rubygems_version: 3.2.15
|
155
170
|
signing_key:
|