simplycop 1.13.11 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/publish_gem.yml +1 -1
- data/.simplycop.yml +2 -0
- data/.simplycop_rails.yml +351 -0
- data/.simplycop_rspec.yml +20 -2
- data/lib/simplycop/version.rb +1 -1
- data/simplycop.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b059fa7b663eecc5cee85e13a4610a7fb9437e08f653eef24b9c700e2e065a3
|
4
|
+
data.tar.gz: 133bc97ec8492dd63898eb91e468807bedea550f36014645f4a9184d6870605d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3121c965a81b8b46b4ec772501f77b09509f47e304516f37edd979276178f4350992fbd75188254cc865bda89a23def9d516ef2d7bd6a16a08b764e6d487a779
|
7
|
+
data.tar.gz: dcd0423818e706053ab0bfd21ba8a5503fff1d2940d55190fda6d2b40513761535ace9dccea3bd1efbdac0d7701f5b9b1025da79c5737c92cc01e2011725c91f
|
data/.github/workflows/ci.yml
CHANGED
data/.simplycop.yml
CHANGED
@@ -886,6 +886,7 @@ Naming/MethodParameterName:
|
|
886
886
|
Enabled: true
|
887
887
|
AllowedNames:
|
888
888
|
- as
|
889
|
+
- at
|
889
890
|
- ex
|
890
891
|
- id
|
891
892
|
- ip
|
@@ -917,6 +918,7 @@ Naming/VariableNumber:
|
|
917
918
|
- rfc822
|
918
919
|
- rfc2822
|
919
920
|
- rfc3339
|
921
|
+
- s3
|
920
922
|
- x86_64
|
921
923
|
AllowedPatterns:
|
922
924
|
- v\d+
|
data/.simplycop_rails.yml
CHANGED
@@ -1,56 +1,399 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-rails
|
3
3
|
|
4
|
+
# Overridden in Chopin
|
5
|
+
Rails/ActionControllerFlashBeforeRender:
|
6
|
+
Enabled: true
|
7
|
+
|
8
|
+
Rails/ActionControllerTestCase:
|
9
|
+
Enabled: true
|
10
|
+
|
11
|
+
Rails/ActionFilter:
|
12
|
+
Enabled: true
|
13
|
+
|
14
|
+
# Overridden in Chopin
|
15
|
+
Rails/ActionOrder:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Rails/ActiveRecordAliases:
|
19
|
+
Enabled: true
|
20
|
+
|
4
21
|
Rails/ActiveRecordCallbacksOrder:
|
5
22
|
Enabled: true
|
6
23
|
|
24
|
+
Rails/ActiveRecordOverride:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Rails/ActiveSupportAliases:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
# Overridden in Chopin
|
31
|
+
Rails/ActiveSupportOnLoad:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Rails/AddColumnIndex:
|
35
|
+
Enabled: true
|
36
|
+
|
7
37
|
Rails/AfterCommitOverride:
|
8
38
|
Enabled: true
|
9
39
|
|
40
|
+
Rails/ApplicationController:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
Rails/ApplicationJob:
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
# Overridden in Chopin
|
47
|
+
Rails/ApplicationMailer:
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Rails/ApplicationRecord:
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
Rails/ArelStar:
|
54
|
+
Enabled: true
|
55
|
+
|
56
|
+
Rails/AssertNot:
|
57
|
+
Enabled: true
|
58
|
+
|
10
59
|
Rails/AttributeDefaultBlockValue:
|
11
60
|
Enabled: true
|
12
61
|
|
62
|
+
Rails/BelongsTo:
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Rails/Blank:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Rails/BulkChangeTable:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
# Overridden in Chopin
|
72
|
+
Rails/CompactBlank:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
# Overridden in Chopin
|
76
|
+
Rails/ContentTag:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Rails/CreateTableWithTimestamps:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Rails/DangerousColumnNames:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Rails/Date:
|
86
|
+
Enabled: true
|
87
|
+
|
13
88
|
Rails/DefaultScope:
|
14
89
|
Enabled: true
|
15
90
|
|
16
91
|
Rails/Delegate:
|
17
92
|
Enabled: false
|
18
93
|
|
94
|
+
Rails/DelegateAllowBlank:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
# Overridden in Chopin
|
98
|
+
Rails/DeprecatedActiveModelErrorsMethods:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Rails/DotSeparatedKeys:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Rails/DuplicateAssociation:
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Rails/DuplicateScope:
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
# Overridden in Chopin
|
111
|
+
Rails/DurationArithmetic:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
Rails/DynamicFindBy:
|
115
|
+
Enabled: false
|
116
|
+
|
117
|
+
Rails/EagerEvaluationLogMessage:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
Rails/EnumHash:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
Rails/EnumUniqueness:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
Rails/EnvironmentComparison:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
Rails/EnvironmentVariableAccess:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
Rails/Exit:
|
133
|
+
Enabled: true
|
134
|
+
|
135
|
+
Rails/ExpandedDateRange:
|
136
|
+
Enabled: true
|
137
|
+
|
138
|
+
Rails/FilePath:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
Rails/FindBy:
|
142
|
+
Enabled: true
|
143
|
+
|
19
144
|
Rails/FindById:
|
20
145
|
Enabled: true
|
21
146
|
|
147
|
+
Rails/FindEach:
|
148
|
+
Enabled: true
|
149
|
+
|
150
|
+
# Overridden in Chopin
|
151
|
+
Rails/FreezeTime:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
Rails/HasAndBelongsToMany:
|
155
|
+
Enabled: true
|
156
|
+
|
157
|
+
# Overridden in Chopin
|
158
|
+
Rails/HasManyOrHasOneDependent:
|
159
|
+
Enabled: true
|
160
|
+
|
161
|
+
Rails/HelperInstanceVariable:
|
162
|
+
Enabled: true
|
163
|
+
|
164
|
+
Rails/HttpPositionalArguments:
|
165
|
+
Enabled: true
|
166
|
+
|
167
|
+
Rails/HttpStatus:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
Rails/I18nLazyLookup:
|
171
|
+
Enabled: false
|
172
|
+
|
173
|
+
# Overridden in Chopin
|
174
|
+
Rails/I18nLocaleAssignment:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
# Overridden in Chopin
|
178
|
+
Rails/I18nLocaleTexts:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
# Overridden in Chopin
|
182
|
+
Rails/IgnoredColumnsAssignment:
|
183
|
+
Enabled: true
|
184
|
+
|
185
|
+
Rails/IgnoredSkipActionFilterOption:
|
186
|
+
Enabled: true
|
187
|
+
|
188
|
+
Rails/IndexBy:
|
189
|
+
Enabled: true
|
190
|
+
|
191
|
+
Rails/IndexWith:
|
192
|
+
Enabled: true
|
193
|
+
|
22
194
|
Rails/Inquiry:
|
23
195
|
Enabled: false
|
24
196
|
|
197
|
+
Rails/InverseOf:
|
198
|
+
Enabled: true
|
199
|
+
|
200
|
+
Rails/LexicallyScopedActionFilter:
|
201
|
+
Enabled: true
|
202
|
+
|
203
|
+
Rails/LinkToBlank:
|
204
|
+
Enabled: true
|
205
|
+
|
25
206
|
Rails/MailerName:
|
26
207
|
Enabled: true
|
27
208
|
|
28
209
|
Rails/MatchRoute:
|
29
210
|
Enabled: true
|
30
211
|
|
212
|
+
Rails/MigrationClassName:
|
213
|
+
Enabled: true
|
214
|
+
|
215
|
+
# Overridden in Chopin
|
31
216
|
Rails/NegateInclude:
|
32
217
|
Enabled: true
|
33
218
|
|
219
|
+
Rails/NotNullColumn:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
Rails/OrderById:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
Rails/Output:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Rails/OutputSafety:
|
229
|
+
Enabled: false
|
230
|
+
|
231
|
+
Rails/Pick:
|
232
|
+
Enabled: true
|
233
|
+
|
34
234
|
# Conflicts with Mongoid
|
35
235
|
Rails/Pluck:
|
36
236
|
Enabled: false
|
37
237
|
|
238
|
+
Rails/PluckId:
|
239
|
+
Enabled: false
|
240
|
+
|
38
241
|
# Conflicts with Mongoid
|
39
242
|
Rails/PluckInWhere:
|
40
243
|
Enabled: false
|
41
244
|
|
245
|
+
Rails/PluralizationGrammar:
|
246
|
+
Enabled: true
|
247
|
+
|
248
|
+
Rails/Presence:
|
249
|
+
Enabled: true
|
250
|
+
|
251
|
+
Rails/Present:
|
252
|
+
Enabled: true
|
253
|
+
|
254
|
+
Rails/RakeEnvironment:
|
255
|
+
Enabled: true
|
256
|
+
|
257
|
+
Rails/ReadWriteAttribute:
|
258
|
+
Enabled: true
|
259
|
+
|
260
|
+
Rails/RedundantActiveRecordAllMethod:
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
Rails/RedundantAllowNil:
|
264
|
+
Enabled: true
|
265
|
+
|
266
|
+
Rails/RedundantForeignKey:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
# Overridden in Chopin
|
270
|
+
Rails/RedundantPresenceValidationOnBelongsTo:
|
271
|
+
Enabled: true
|
272
|
+
|
273
|
+
Rails/RedundantReceiverInWithOptions:
|
274
|
+
Enabled: true
|
275
|
+
|
276
|
+
Rails/RedundantTravelBack:
|
277
|
+
Enabled: true
|
278
|
+
|
279
|
+
Rails/ReflectionClassName:
|
280
|
+
Enabled: true
|
281
|
+
|
282
|
+
Rails/RefuteMethods:
|
283
|
+
Enabled: false
|
284
|
+
|
285
|
+
# Overridden in Chopin
|
286
|
+
Rails/RelativeDateConstant:
|
287
|
+
Enabled: true
|
288
|
+
|
42
289
|
Rails/RenderInline:
|
43
290
|
Enabled: true
|
44
291
|
|
45
292
|
Rails/RenderPlainText:
|
46
293
|
Enabled: true
|
47
294
|
|
295
|
+
Rails/RequestReferer:
|
296
|
+
Enabled: false
|
297
|
+
|
298
|
+
Rails/RequireDependency:
|
299
|
+
Enabled: false
|
300
|
+
|
301
|
+
Rails/ResponseParsedBody:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
Rails/ReversibleMigration:
|
305
|
+
Enabled: true
|
306
|
+
|
307
|
+
Rails/ReversibleMigrationMethodDefinition:
|
308
|
+
Enabled: false
|
309
|
+
|
310
|
+
# Overridden in Chopin
|
311
|
+
Rails/RootJoinChain:
|
312
|
+
Enabled: true
|
313
|
+
|
314
|
+
# Overridden in Chopin
|
315
|
+
Rails/RootPathnameMethods:
|
316
|
+
Enabled: true
|
317
|
+
|
318
|
+
# Overridden in Chopin
|
319
|
+
Rails/RootPublicPath:
|
320
|
+
Enabled: true
|
321
|
+
|
322
|
+
Rails/SafeNavigation:
|
323
|
+
Enabled: true
|
324
|
+
|
325
|
+
Rails/SafeNavigationWithBlank:
|
326
|
+
Enabled: true
|
327
|
+
|
328
|
+
Rails/SaveBang:
|
329
|
+
Enabled: false
|
330
|
+
|
331
|
+
Rails/SchemaComment:
|
332
|
+
Enabled: false
|
333
|
+
|
334
|
+
Rails/ScopeArgs:
|
335
|
+
Enabled: true
|
336
|
+
|
337
|
+
Rails/SelectMap:
|
338
|
+
Enabled: true
|
339
|
+
|
48
340
|
Rails/ShortI18n:
|
49
341
|
Enabled: true
|
50
342
|
|
343
|
+
Rails/SkipsModelValidations:
|
344
|
+
Enabled: true
|
345
|
+
|
51
346
|
Rails/SquishedSQLHeredocs:
|
52
347
|
Enabled: true
|
53
348
|
|
349
|
+
# Overridden in Chopin
|
350
|
+
Rails/StripHeredoc:
|
351
|
+
Enabled: true
|
352
|
+
|
353
|
+
Rails/TableNameAssignment:
|
354
|
+
Enabled: false
|
355
|
+
|
356
|
+
Rails/ThreeStateBooleanColumn:
|
357
|
+
Enabled: false
|
358
|
+
|
359
|
+
Rails/TimeZone:
|
360
|
+
Enabled: true
|
361
|
+
|
362
|
+
# Overridden in Chopin
|
363
|
+
Rails/TimeZoneAssignment:
|
364
|
+
Enabled: true
|
365
|
+
|
366
|
+
Rails/ToFormattedS:
|
367
|
+
Enabled: false
|
368
|
+
|
369
|
+
Rails/ToSWithArgument:
|
370
|
+
Enabled: false
|
371
|
+
|
372
|
+
# Overridden in Chopin
|
373
|
+
Rails/TopLevelHashWithIndifferentAccess:
|
374
|
+
Enabled: true
|
375
|
+
|
376
|
+
Rails/TransactionExitStatement:
|
377
|
+
Enabled: true
|
378
|
+
|
379
|
+
Rails/UniqBeforePluck:
|
380
|
+
Enabled: true
|
381
|
+
|
382
|
+
Rails/UniqueValidationWithoutIndex:
|
383
|
+
Enabled: true
|
384
|
+
|
385
|
+
Rails/UnknownEnv:
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
Rails/UnusedIgnoredColumns:
|
389
|
+
Enabled: true
|
390
|
+
|
391
|
+
Rails/UnusedRenderContent:
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
Rails/Validation:
|
395
|
+
Enabled: true
|
396
|
+
|
54
397
|
Rails/WhereEquals:
|
55
398
|
Enabled: true
|
56
399
|
|
@@ -58,10 +401,18 @@ Rails/WhereEquals:
|
|
58
401
|
Rails/WhereExists:
|
59
402
|
Enabled: false
|
60
403
|
|
404
|
+
# Anticipate conflicts with Mongoid, like Rails/WhereExists
|
405
|
+
Rails/WhereMissing:
|
406
|
+
Enabled: false
|
407
|
+
|
61
408
|
# Conflicts with Mongoid
|
62
409
|
Rails/WhereNot:
|
63
410
|
Enabled: false
|
64
411
|
|
412
|
+
# Anticipate conflicts with Mongoid, like Rails/WhereNot
|
413
|
+
Rails/WhereNotWithMultipleConditions:
|
414
|
+
Enabled: false
|
415
|
+
|
65
416
|
Rails/ActionControllerTestCase: # new in 2.14
|
66
417
|
Enabled: true
|
67
418
|
|
data/.simplycop_rspec.yml
CHANGED
@@ -96,6 +96,12 @@ RSpec/EmptyLineAfterHook:
|
|
96
96
|
RSpec/EmptyLineAfterSubject:
|
97
97
|
Enabled: true
|
98
98
|
|
99
|
+
RSpec/EmptyMetadata:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
RSpec/Eq:
|
103
|
+
Enabled: true
|
104
|
+
|
99
105
|
RSpec/ExampleLength:
|
100
106
|
Enabled: false
|
101
107
|
|
@@ -179,6 +185,9 @@ RSpec/MessageChain:
|
|
179
185
|
RSpec/MessageSpies:
|
180
186
|
Enabled: false
|
181
187
|
|
188
|
+
RSpec/MetadataStyle:
|
189
|
+
Enabled: true
|
190
|
+
|
182
191
|
RSpec/MissingExampleGroupArgument:
|
183
192
|
Enabled: true
|
184
193
|
|
@@ -311,10 +320,10 @@ RSpec/Capybara:
|
|
311
320
|
Include:
|
312
321
|
- spec/integration/*.rb
|
313
322
|
|
314
|
-
Capybara/
|
323
|
+
RSpec/Capybara/FeatureMethods:
|
315
324
|
Enabled: true
|
316
325
|
|
317
|
-
Capybara/
|
326
|
+
Capybara/CurrentPathExpectation:
|
318
327
|
Enabled: true
|
319
328
|
|
320
329
|
Capybara/MatchStyle:
|
@@ -334,6 +343,9 @@ Capybara/SpecificMatcher:
|
|
334
343
|
|
335
344
|
# RSpec/FactoryBot
|
336
345
|
|
346
|
+
FactoryBot/AssociationStyle:
|
347
|
+
Enabled: true
|
348
|
+
|
337
349
|
FactoryBot/AttributeDefinedStatically:
|
338
350
|
Enabled: true
|
339
351
|
|
@@ -343,12 +355,18 @@ FactoryBot/ConsistentParenthesesStyle:
|
|
343
355
|
FactoryBot/CreateList:
|
344
356
|
Enabled: false
|
345
357
|
|
358
|
+
FactoryBot/FactoryAssociationWithStrategy:
|
359
|
+
Enabled: true
|
360
|
+
|
346
361
|
FactoryBot/FactoryClassName:
|
347
362
|
Enabled: true
|
348
363
|
|
349
364
|
FactoryBot/FactoryNameStyle:
|
350
365
|
Enabled: true
|
351
366
|
|
367
|
+
FactoryBot/RedundantFactoryOption:
|
368
|
+
Enabled: true
|
369
|
+
|
352
370
|
# Prefer explicit factorybot call
|
353
371
|
FactoryBot/SyntaxMethods:
|
354
372
|
Enabled: false
|
data/lib/simplycop/version.rb
CHANGED
data/simplycop.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'rubocop', '1.56.
|
20
|
+
spec.add_dependency 'rubocop', '1.56.3'
|
21
21
|
spec.add_dependency 'rubocop-performance', '1.19.0'
|
22
22
|
spec.add_dependency 'rubocop-rails', '2.21.1'
|
23
23
|
spec.add_dependency 'rubocop-rspec', '2.24.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.56.
|
19
|
+
version: 1.56.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.56.
|
26
|
+
version: 1.56.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|