simplycop 1.12.16 → 1.12.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplycop.yml +46 -47
- data/.simplycop_rspec.yml +31 -27
- data/lib/simplycop/version.rb +1 -1
- metadata +2 -3
- data/mkdocs.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb0162eb0b49f4c38b6a0e5a3adb01ffcd6d58ba0ba4f0cf56fae6869229b974
|
4
|
+
data.tar.gz: 152f92c09cb44a1f852cd694e5676da8c5ea15766f9d0129010925663f485f11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b5387269617071c3b578ea6b9833e7431b256bdc05b79e82b59378ff6a9bfd1723b89aca949b4dc042169d6ef34cd88763021b4155b96c16726b6fdca047620
|
7
|
+
data.tar.gz: efdb8ba24eac8850c568844b3614451ad5acb51ac6f30298a1b38294a378921bef5c5aee68bdddf639b2d8208ed171e1041b2e34ce258776339761fcf11582d0
|
data/.simplycop.yml
CHANGED
@@ -21,6 +21,10 @@ AllCops:
|
|
21
21
|
ExtraDetails: true
|
22
22
|
# Adapted from: https://github.com/simplybusiness/how-we-roll/blob/master/development/RUBYSTYLEGUIDE.markdown
|
23
23
|
|
24
|
+
|
25
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
26
|
+
Enabled: true
|
27
|
+
|
24
28
|
Layout/EmptyLineAfterMultilineCondition:
|
25
29
|
Enabled: true
|
26
30
|
|
@@ -61,6 +65,9 @@ Lint/AmbiguousOperatorPrecedence:
|
|
61
65
|
Lint/AmbiguousRange:
|
62
66
|
Enabled: true
|
63
67
|
|
68
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
69
|
+
Enabled: true
|
70
|
+
|
64
71
|
Lint/DeprecatedConstants:
|
65
72
|
Enabled: true
|
66
73
|
|
@@ -82,9 +89,15 @@ Lint/EmptyBlock:
|
|
82
89
|
Lint/EmptyClass:
|
83
90
|
Enabled: true
|
84
91
|
|
92
|
+
Lint/EmptyInPattern: # new in 1.16
|
93
|
+
Enabled: true
|
94
|
+
|
85
95
|
Lint/HeredocMethodCallPosition:
|
86
96
|
Enabled: true
|
87
97
|
|
98
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
99
|
+
Enabled: true
|
100
|
+
|
88
101
|
Lint/LambdaWithoutLiteralBlock:
|
89
102
|
Enabled: true
|
90
103
|
|
@@ -141,10 +154,11 @@ Metrics/ParameterLists:
|
|
141
154
|
CountKeywordArgs: false
|
142
155
|
Enabled: true
|
143
156
|
|
144
|
-
Naming/
|
157
|
+
Naming/BlockForwarding: # new in 1.24
|
145
158
|
Enabled: true
|
146
159
|
|
147
|
-
|
160
|
+
Naming/InclusiveLanguage:
|
161
|
+
Enabled: true
|
148
162
|
|
149
163
|
Security/CompoundHash:
|
150
164
|
Enabled: true
|
@@ -198,6 +212,9 @@ Style/DocumentDynamicEvalDefinition:
|
|
198
212
|
Style/Documentation:
|
199
213
|
Enabled: false
|
200
214
|
|
215
|
+
Style/EmptyHeredoc: # new in 1.32
|
216
|
+
Enabled: true
|
217
|
+
|
201
218
|
Style/EndlessMethod:
|
202
219
|
Enabled: true
|
203
220
|
|
@@ -213,6 +230,9 @@ Style/ExponentialNotation:
|
|
213
230
|
Style/FetchEnvVar:
|
214
231
|
Enabled: true
|
215
232
|
|
233
|
+
Style/FileRead: # new in 1.24
|
234
|
+
Enabled: true
|
235
|
+
|
216
236
|
Style/FileWrite:
|
217
237
|
Enabled: true
|
218
238
|
|
@@ -264,18 +284,30 @@ Style/IfUnlessModifier:
|
|
264
284
|
Style/IfWithBooleanLiteralBranches:
|
265
285
|
Enabled: true
|
266
286
|
|
287
|
+
Style/InPatternThen: # new in 1.16
|
288
|
+
Enabled: true
|
289
|
+
|
267
290
|
Style/KeywordParametersOrder:
|
268
291
|
Enabled: true
|
269
292
|
|
270
293
|
Style/LambdaCall:
|
271
294
|
Enabled: true
|
272
295
|
|
296
|
+
Style/MagicCommentFormat: # new in 1.35
|
297
|
+
Enabled: true
|
298
|
+
|
299
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
300
|
+
Enabled: true
|
301
|
+
|
273
302
|
Style/MapToHash:
|
274
303
|
Enabled: true
|
275
304
|
|
276
305
|
Style/MethodDefParentheses:
|
277
306
|
Enabled: true
|
278
307
|
|
308
|
+
Style/MultilineInPatternThen: # new in 1.16
|
309
|
+
Enabled: true
|
310
|
+
|
279
311
|
Style/MultilineTernaryOperator:
|
280
312
|
Enabled: true
|
281
313
|
|
@@ -285,6 +317,9 @@ Style/MutableConstant:
|
|
285
317
|
Style/NegatedIfElseCondition:
|
286
318
|
Enabled: true
|
287
319
|
|
320
|
+
Style/NestedFileDirname: # new in 1.26
|
321
|
+
Enabled: true
|
322
|
+
|
288
323
|
Style/NestedModifier:
|
289
324
|
Enabled: true
|
290
325
|
|
@@ -297,9 +332,18 @@ Style/NestedTernaryOperator:
|
|
297
332
|
Style/NilLambda:
|
298
333
|
Enabled: true
|
299
334
|
|
335
|
+
Style/NumberedParameters: # new in 1.22
|
336
|
+
Enabled: true
|
337
|
+
|
338
|
+
Style/NumberedParametersLimit: # new in 1.22
|
339
|
+
Enabled: true
|
340
|
+
|
300
341
|
Style/NumericPredicate:
|
301
342
|
Enabled: false
|
302
343
|
|
344
|
+
Style/ObjectThen: # new in 1.28
|
345
|
+
Enabled: true
|
346
|
+
|
303
347
|
Style/OpenStructUse:
|
304
348
|
Enabled: true
|
305
349
|
|
@@ -418,48 +462,3 @@ Style/WordArray:
|
|
418
462
|
|
419
463
|
Style/ZeroLengthPredicate:
|
420
464
|
Enabled: true
|
421
|
-
|
422
|
-
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
423
|
-
Enabled: true
|
424
|
-
|
425
|
-
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
426
|
-
Enabled: true
|
427
|
-
|
428
|
-
Lint/EmptyInPattern: # new in 1.16
|
429
|
-
Enabled: true
|
430
|
-
|
431
|
-
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
432
|
-
Enabled: true
|
433
|
-
|
434
|
-
Naming/BlockForwarding: # new in 1.24
|
435
|
-
Enabled: true
|
436
|
-
|
437
|
-
Style/EmptyHeredoc: # new in 1.32
|
438
|
-
Enabled: true
|
439
|
-
|
440
|
-
Style/FileRead: # new in 1.24
|
441
|
-
Enabled: true
|
442
|
-
|
443
|
-
Style/InPatternThen: # new in 1.16
|
444
|
-
Enabled: true
|
445
|
-
|
446
|
-
Style/MagicCommentFormat: # new in 1.35
|
447
|
-
Enabled: true
|
448
|
-
|
449
|
-
Style/MapCompactWithConditionalBlock: # new in 1.30
|
450
|
-
Enabled: true
|
451
|
-
|
452
|
-
Style/MultilineInPatternThen: # new in 1.16
|
453
|
-
Enabled: true
|
454
|
-
|
455
|
-
Style/NestedFileDirname: # new in 1.26
|
456
|
-
Enabled: true
|
457
|
-
|
458
|
-
Style/NumberedParameters: # new in 1.22
|
459
|
-
Enabled: true
|
460
|
-
|
461
|
-
Style/NumberedParametersLimit: # new in 1.22
|
462
|
-
Enabled: true
|
463
|
-
|
464
|
-
Style/ObjectThen: # new in 1.28
|
465
|
-
Enabled: true
|
data/.simplycop_rspec.yml
CHANGED
@@ -16,23 +16,6 @@ RSpec/ChangeByZero:
|
|
16
16
|
RSpec/ClassCheck:
|
17
17
|
Enabled: true
|
18
18
|
|
19
|
-
RSpec/Capybara:
|
20
|
-
Enabled: true
|
21
|
-
Include:
|
22
|
-
- spec/integration/*.rb
|
23
|
-
|
24
|
-
RSpec/Capybara/NegationMatcher:
|
25
|
-
Enabled: true
|
26
|
-
|
27
|
-
RSpec/Capybara/SpecificActions:
|
28
|
-
Enabled: true
|
29
|
-
|
30
|
-
RSpec/Capybara/SpecificFinders:
|
31
|
-
Enabled: true
|
32
|
-
|
33
|
-
RSpec/Capybara/SpecificMatcher:
|
34
|
-
Enabled: true
|
35
|
-
|
36
19
|
RSpec/DescribeClass:
|
37
20
|
Enabled: false
|
38
21
|
|
@@ -54,16 +37,6 @@ RSpec/ExcessiveDocstringSpacing:
|
|
54
37
|
RSpec/ExpectOutput:
|
55
38
|
Enabled: false
|
56
39
|
|
57
|
-
RSpec/FactoryBot/ConsistentParenthesesStyle:
|
58
|
-
Enabled: true
|
59
|
-
|
60
|
-
RSpec/FactoryBot/FactoryNameStyle:
|
61
|
-
Enabled: true
|
62
|
-
|
63
|
-
# Prefer explicit factorybot call
|
64
|
-
RSpec/FactoryBot/SyntaxMethods:
|
65
|
-
Enabled: false
|
66
|
-
|
67
40
|
RSpec/FilePath:
|
68
41
|
Enabled: false
|
69
42
|
|
@@ -119,3 +92,34 @@ RSpec/Rails/InferredSpecType:
|
|
119
92
|
|
120
93
|
RSpec/VerifiedDoubleReference:
|
121
94
|
Enabled: true
|
95
|
+
|
96
|
+
# Capybara
|
97
|
+
|
98
|
+
RSpec/Capybara:
|
99
|
+
Enabled: true
|
100
|
+
Include:
|
101
|
+
- spec/integration/*.rb
|
102
|
+
|
103
|
+
Capybara/NegationMatcher:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Capybara/SpecificActions:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Capybara/SpecificFinders:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Capybara/SpecificMatcher:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
# FactoryBot
|
116
|
+
|
117
|
+
FactoryBot/ConsistentParenthesesStyle:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
FactoryBot/FactoryNameStyle:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
# Prefer explicit factorybot call
|
124
|
+
FactoryBot/SyntaxMethods:
|
125
|
+
Enabled: false
|
data/lib/simplycop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -142,7 +142,6 @@ files:
|
|
142
142
|
- lib/simplycop/security/reject_all_requests_local.rb
|
143
143
|
- lib/simplycop/version.rb
|
144
144
|
- mkdocs.yaml
|
145
|
-
- mkdocs.yml
|
146
145
|
- simplycop.gemspec
|
147
146
|
- vuln_db.json
|
148
147
|
homepage: https://github.com/simplybusiness/simplycop
|