armitage-rubocop 0.85.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rubocop.yml +6 -0
- data/.yamllint +50 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +86 -0
- data/Rakefile +138 -0
- data/armitage-rubocop.gemspec +34 -0
- data/bin/setup +8 -0
- data/lib/common/bundler.yml +12 -0
- data/lib/common/gemspec.yml +12 -0
- data/lib/common/layout.yml +376 -0
- data/lib/common/lint.yml +275 -0
- data/lib/common/metrics.yml +49 -0
- data/lib/common/migration.yml +2 -0
- data/lib/common/naming.yml +74 -0
- data/lib/common/performance.yml +92 -0
- data/lib/common/rails.yml +218 -0
- data/lib/common/rake.yml +14 -0
- data/lib/common/security.yml +15 -0
- data/lib/common/style.yml +594 -0
- data/lib/rspec/capybara.yml +8 -0
- data/lib/rspec/factory_bot.yml +9 -0
- data/lib/rspec/rails.yml +2 -0
- data/lib/rspec/rspec.yml +253 -0
- data/lib/rubocop.general.yml +21 -0
- data/lib/rubocop.rails.yml +13 -0
- data/lib/rubocop.rake.yml +10 -0
- data/lib/rubocop.rspec.yml +21 -0
- metadata +186 -0
@@ -0,0 +1,594 @@
|
|
1
|
+
Style/AccessModifierDeclarations:
|
2
|
+
Enabled: true
|
3
|
+
EnforcedStyle: group
|
4
|
+
AllowModifiersOnSymbols: true
|
5
|
+
|
6
|
+
Style/Alias:
|
7
|
+
Enabled: true
|
8
|
+
EnforcedStyle: prefer_alias_method
|
9
|
+
|
10
|
+
Style/AndOr:
|
11
|
+
Enabled: false
|
12
|
+
EnforcedStyle: always
|
13
|
+
|
14
|
+
Style/ArrayJoin:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
Style/AsciiComments:
|
18
|
+
Enabled: false
|
19
|
+
AllowedChars: []
|
20
|
+
|
21
|
+
Style/Attr:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Style/AutoResourceCleanup:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/BarePercentLiterals:
|
28
|
+
Enabled: true
|
29
|
+
EnforcedStyle: bare_percent
|
30
|
+
|
31
|
+
Style/BeginBlock:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Style/BlockComments:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Style/BlockDelimiters:
|
38
|
+
Enabled: true
|
39
|
+
EnforcedStyle: line_count_based
|
40
|
+
AllowBracesOnProceduralOneLiners: false
|
41
|
+
BracesRequiredMethods: ['sig']
|
42
|
+
|
43
|
+
Style/CaseEquality:
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
Style/CharacterLiteral:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
Style/ClassAndModuleChildren:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/ClassCheck:
|
53
|
+
Enabled: true
|
54
|
+
EnforcedStyle: is_a?
|
55
|
+
|
56
|
+
Style/ClassMethods:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Style/ClassVars:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Style/CollectionMethods:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Style/ColonMethodCall:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Style/ColonMethodDefinition:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Style/CommandLiteral:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Style/CommentAnnotation:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Style/CommentedKeyword:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
Style/ConditionalAssignment:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
Style/ConstantVisibility:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
Style/Copyright:
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
Style/DateTime:
|
90
|
+
Enabled: false
|
91
|
+
AllowCoercion: false
|
92
|
+
|
93
|
+
Style/DefWithParentheses:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Style/Dir:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Style/DisableCopsWithinSourceCodeDirective:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
Style/Documentation:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
Style/DocumentationMethod:
|
106
|
+
Enabled: false
|
107
|
+
|
108
|
+
Style/DoubleNegation:
|
109
|
+
Enabled: false
|
110
|
+
EnforcedStyle: allowed_in_returns
|
111
|
+
|
112
|
+
Style/EachForSimpleLoop:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Style/EachWithObject:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Style/EmptyBlockParameter:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Style/EmptyCaseCondition:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
Style/EmptyElse:
|
125
|
+
Enabled: true
|
126
|
+
EnforcedStyle: empty
|
127
|
+
|
128
|
+
Style/EmptyLambdaParameter:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Style/EmptyLiteral:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Style/EmptyMethod:
|
135
|
+
Enabled: true
|
136
|
+
EnforcedStyle: compact
|
137
|
+
|
138
|
+
Style/Encoding:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
Style/EndBlock:
|
142
|
+
Enabled: true
|
143
|
+
AutoCorrect: true
|
144
|
+
|
145
|
+
Style/EvalWithLocation:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
Style/EvenOdd:
|
149
|
+
Enabled: true
|
150
|
+
|
151
|
+
Style/ExpandPathArguments:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
Style/ExponentialNotation:
|
155
|
+
Enabled: true
|
156
|
+
EnforcedStyle: scientific
|
157
|
+
|
158
|
+
Style/FloatDivision:
|
159
|
+
Enabled: false
|
160
|
+
|
161
|
+
Style/For:
|
162
|
+
Enabled: true
|
163
|
+
EnforcedStyle: each
|
164
|
+
AutoCorrect: true
|
165
|
+
|
166
|
+
Style/FormatString:
|
167
|
+
Enabled: true
|
168
|
+
EnforcedStyle: format
|
169
|
+
|
170
|
+
Style/FormatStringToken:
|
171
|
+
Enabled: true
|
172
|
+
EnforcedStyle: annotated
|
173
|
+
|
174
|
+
Style/FrozenStringLiteralComment:
|
175
|
+
Enabled: true
|
176
|
+
EnforcedStyle: always
|
177
|
+
|
178
|
+
Style/GlobalVars:
|
179
|
+
Enabled: true
|
180
|
+
AllowedVariables: []
|
181
|
+
|
182
|
+
Style/GuardClause:
|
183
|
+
Enabled: false
|
184
|
+
MinBodyLength: 1
|
185
|
+
|
186
|
+
Style/HashEachMethods:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
Style/HashSyntax:
|
190
|
+
Enabled: true
|
191
|
+
EnforcedStyle: ruby19
|
192
|
+
UseHashRocketsWithSymbolValues: false
|
193
|
+
PreferHashRocketsForNonAlnumEndingSymbols: false
|
194
|
+
|
195
|
+
Style/HashTransformKeys:
|
196
|
+
Enabled: false
|
197
|
+
|
198
|
+
Style/HashTransformValues:
|
199
|
+
Enabled: false
|
200
|
+
|
201
|
+
Style/IdenticalConditionalBranches:
|
202
|
+
Enabled: true
|
203
|
+
|
204
|
+
Style/IfInsideElse:
|
205
|
+
Enabled: true
|
206
|
+
AllowIfModifier: true
|
207
|
+
|
208
|
+
Style/IfUnlessModifier:
|
209
|
+
Enabled: false
|
210
|
+
|
211
|
+
Style/IfUnlessModifierOfIfUnless:
|
212
|
+
Enabled: true
|
213
|
+
|
214
|
+
Style/IfWithSemicolon:
|
215
|
+
Enabled: true
|
216
|
+
AutoCorrect: true
|
217
|
+
|
218
|
+
Style/ImplicitRuntimeError:
|
219
|
+
Enabled: false
|
220
|
+
|
221
|
+
Style/InfiniteLoop:
|
222
|
+
Enabled: true
|
223
|
+
|
224
|
+
Style/InlineComment:
|
225
|
+
Enabled: false
|
226
|
+
|
227
|
+
Style/InverseMethods:
|
228
|
+
Enabled: true
|
229
|
+
|
230
|
+
Style/IpAddresses:
|
231
|
+
Enabled: false
|
232
|
+
|
233
|
+
Style/Lambda:
|
234
|
+
Enabled: true
|
235
|
+
EnforcedStyle: line_count_dependent
|
236
|
+
|
237
|
+
Style/LambdaCall:
|
238
|
+
Enabled: false
|
239
|
+
|
240
|
+
Style/LineEndConcatenation:
|
241
|
+
Enabled: true
|
242
|
+
|
243
|
+
Style/MethodCallWithArgsParentheses:
|
244
|
+
Enabled: false
|
245
|
+
IgnoredMethods: []
|
246
|
+
|
247
|
+
Style/MethodCallWithoutArgsParentheses:
|
248
|
+
Enabled: true
|
249
|
+
|
250
|
+
Style/MethodCalledOnDoEndBlock:
|
251
|
+
Enabled: false
|
252
|
+
|
253
|
+
Style/MethodDefParentheses:
|
254
|
+
Enabled: true
|
255
|
+
EnforcedStyle: require_parentheses
|
256
|
+
|
257
|
+
Style/MethodMissingSuper:
|
258
|
+
Enabled: false
|
259
|
+
|
260
|
+
Style/MinMax:
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
Style/MissingElse:
|
264
|
+
Enabled: false
|
265
|
+
|
266
|
+
Style/MissingRespondToMissing:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Style/MixinGrouping:
|
270
|
+
Enabled: true
|
271
|
+
EnforcedStyle: separated
|
272
|
+
|
273
|
+
Style/MixinUsage:
|
274
|
+
Enabled: true
|
275
|
+
|
276
|
+
Style/ModuleFunction:
|
277
|
+
Enabled: false
|
278
|
+
|
279
|
+
Style/MultilineBlockChain:
|
280
|
+
Enabled: false
|
281
|
+
|
282
|
+
Style/MultilineIfModifier:
|
283
|
+
Enabled: false
|
284
|
+
|
285
|
+
Style/MultilineIfThen:
|
286
|
+
Enabled: true
|
287
|
+
|
288
|
+
Style/MultilineMemoization:
|
289
|
+
Enabled: true
|
290
|
+
EnforcedStyle: keyword
|
291
|
+
|
292
|
+
Style/MultilineMethodSignature:
|
293
|
+
Enabled: false
|
294
|
+
|
295
|
+
Style/MultilineTernaryOperator:
|
296
|
+
Enabled: false
|
297
|
+
|
298
|
+
Style/MultilineWhenThen:
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
Style/MultipleComparison:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
Style/MutableConstant:
|
305
|
+
Enabled: true
|
306
|
+
|
307
|
+
Style/NegatedIf:
|
308
|
+
Enabled: true
|
309
|
+
EnforcedStyle: both
|
310
|
+
|
311
|
+
Style/NegatedUnless:
|
312
|
+
Enabled: false
|
313
|
+
EnforcedStyle: both
|
314
|
+
|
315
|
+
Style/NegatedWhile:
|
316
|
+
Enabled: true
|
317
|
+
|
318
|
+
Style/NestedModifier:
|
319
|
+
Enabled: true
|
320
|
+
|
321
|
+
Style/NestedParenthesizedCalls:
|
322
|
+
Enabled: true
|
323
|
+
|
324
|
+
Style/NestedTernaryOperator:
|
325
|
+
Enabled: true
|
326
|
+
|
327
|
+
Style/Next:
|
328
|
+
Enabled: true
|
329
|
+
EnforcedStyle: skip_modifier_ifs
|
330
|
+
MinBodyLength: 3
|
331
|
+
|
332
|
+
Style/NilComparison:
|
333
|
+
Enabled: true
|
334
|
+
EnforcedStyle: predicate
|
335
|
+
|
336
|
+
Style/NonNilCheck:
|
337
|
+
Enabled: true
|
338
|
+
IncludeSemanticChanges: false
|
339
|
+
|
340
|
+
Style/Not:
|
341
|
+
Enabled: true
|
342
|
+
|
343
|
+
Style/NumericLiteralPrefix:
|
344
|
+
Enabled: true
|
345
|
+
EnforcedOctalStyle: zero_with_o
|
346
|
+
|
347
|
+
Style/NumericLiterals:
|
348
|
+
Enabled: false
|
349
|
+
|
350
|
+
Style/NumericPredicate:
|
351
|
+
Enabled: true
|
352
|
+
EnforcedStyle: predicate
|
353
|
+
AutoCorrect: false
|
354
|
+
IgnoredMethods: []
|
355
|
+
|
356
|
+
Style/OneLineConditional:
|
357
|
+
Enabled: true
|
358
|
+
|
359
|
+
Style/OptionHash:
|
360
|
+
Enabled: false
|
361
|
+
|
362
|
+
Style/OptionalArguments:
|
363
|
+
Enabled: true
|
364
|
+
|
365
|
+
Style/ParallelAssignment:
|
366
|
+
Enabled: false
|
367
|
+
|
368
|
+
Style/ParenthesesAroundCondition:
|
369
|
+
Enabled: false
|
370
|
+
|
371
|
+
Style/PercentLiteralDelimiters:
|
372
|
+
Enabled: true
|
373
|
+
|
374
|
+
Style/PercentQLiterals:
|
375
|
+
Enabled: true
|
376
|
+
EnforcedStyle: lower_case_q
|
377
|
+
|
378
|
+
Style/PerlBackrefs:
|
379
|
+
Enabled: true
|
380
|
+
|
381
|
+
Style/PreferredHashMethods:
|
382
|
+
Enabled: true
|
383
|
+
EnforcedStyle: short
|
384
|
+
|
385
|
+
Style/Proc:
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
Style/RaiseArgs:
|
389
|
+
Enabled: true
|
390
|
+
EnforcedStyle: exploded
|
391
|
+
|
392
|
+
Style/RandomWithOffset:
|
393
|
+
Enabled: true
|
394
|
+
|
395
|
+
Style/RedundantBegin:
|
396
|
+
Enabled: true
|
397
|
+
|
398
|
+
Style/RedundantConditional:
|
399
|
+
Enabled: true
|
400
|
+
|
401
|
+
Style/RedundantRegexpCharacterClass:
|
402
|
+
Enabled: true
|
403
|
+
|
404
|
+
Style/RedundantRegexpEscape:
|
405
|
+
Enabled: true
|
406
|
+
|
407
|
+
Style/RedundantException:
|
408
|
+
Enabled: false
|
409
|
+
|
410
|
+
Style/RedundantFreeze:
|
411
|
+
Enabled: true
|
412
|
+
|
413
|
+
Style/RedundantParentheses:
|
414
|
+
Enabled: true
|
415
|
+
|
416
|
+
Style/RedundantReturn:
|
417
|
+
Enabled: true
|
418
|
+
AllowMultipleReturnValues: false
|
419
|
+
|
420
|
+
Style/RedundantSelf:
|
421
|
+
Enabled: true
|
422
|
+
|
423
|
+
Style/RedundantSortBy:
|
424
|
+
Enabled: true
|
425
|
+
|
426
|
+
Style/RegexpLiteral:
|
427
|
+
Enabled: false
|
428
|
+
|
429
|
+
Style/RescueModifier:
|
430
|
+
Enabled: false
|
431
|
+
|
432
|
+
Style/RescueStandardError:
|
433
|
+
Enabled: false
|
434
|
+
|
435
|
+
Style/ReturnNil:
|
436
|
+
Enabled: false
|
437
|
+
|
438
|
+
Style/SafeNavigation:
|
439
|
+
Enabled: true
|
440
|
+
ConvertCodeThatCanStartToReturnNil: false
|
441
|
+
|
442
|
+
Style/Sample:
|
443
|
+
Enabled: true
|
444
|
+
|
445
|
+
Style/SelfAssignment:
|
446
|
+
Enabled: true
|
447
|
+
|
448
|
+
Style/Semicolon:
|
449
|
+
Enabled: true
|
450
|
+
AllowAsExpressionSeparator: false
|
451
|
+
|
452
|
+
Style/Send:
|
453
|
+
Enabled: false
|
454
|
+
|
455
|
+
Style/SignalException:
|
456
|
+
Enabled: true
|
457
|
+
EnforcedStyle: only_raise
|
458
|
+
|
459
|
+
Style/SingleLineBlockParams:
|
460
|
+
Enabled: false
|
461
|
+
|
462
|
+
Style/SingleLineMethods:
|
463
|
+
Enabled: true
|
464
|
+
AllowIfMethodIsEmpty: true
|
465
|
+
Exclude:
|
466
|
+
- spec/**/*
|
467
|
+
|
468
|
+
Style/SlicingWithRange:
|
469
|
+
Enabled: true
|
470
|
+
|
471
|
+
Style/SpecialGlobalVars:
|
472
|
+
Enabled: true
|
473
|
+
|
474
|
+
Style/StabbyLambdaParentheses:
|
475
|
+
Enabled: true
|
476
|
+
EnforcedStyle: require_parentheses
|
477
|
+
|
478
|
+
Style/StderrPuts:
|
479
|
+
Enabled: true
|
480
|
+
|
481
|
+
Style/StringHashKeys:
|
482
|
+
Enabled: false
|
483
|
+
|
484
|
+
Style/StringLiterals:
|
485
|
+
Enabled: true
|
486
|
+
EnforcedStyle: single_quotes
|
487
|
+
ConsistentQuotesInMultiline: true
|
488
|
+
|
489
|
+
Style/StringLiteralsInInterpolation:
|
490
|
+
Enabled: true
|
491
|
+
EnforcedStyle: single_quotes
|
492
|
+
|
493
|
+
Style/StringMethods:
|
494
|
+
Enabled: false
|
495
|
+
|
496
|
+
Style/Strip:
|
497
|
+
Enabled: true
|
498
|
+
|
499
|
+
Style/StructInheritance:
|
500
|
+
Enabled: true
|
501
|
+
|
502
|
+
Style/SymbolArray:
|
503
|
+
Enabled: true
|
504
|
+
EnforcedStyle: percent
|
505
|
+
|
506
|
+
Style/SymbolLiteral:
|
507
|
+
Enabled: true
|
508
|
+
|
509
|
+
Style/SymbolProc:
|
510
|
+
Enabled: true
|
511
|
+
|
512
|
+
Style/TernaryParentheses:
|
513
|
+
Enabled: true
|
514
|
+
EnforcedStyle: require_parentheses_when_complex
|
515
|
+
AllowSafeAssignment: true
|
516
|
+
|
517
|
+
Style/TrailingBodyOnClass:
|
518
|
+
Enabled: true
|
519
|
+
|
520
|
+
Style/TrailingBodyOnMethodDefinition:
|
521
|
+
Enabled: true
|
522
|
+
|
523
|
+
Style/TrailingBodyOnModule:
|
524
|
+
Enabled: true
|
525
|
+
|
526
|
+
Style/TrailingCommaInArguments:
|
527
|
+
Enabled: true
|
528
|
+
EnforcedStyleForMultiline: no_comma
|
529
|
+
|
530
|
+
Style/TrailingCommaInArrayLiteral:
|
531
|
+
Enabled: true
|
532
|
+
EnforcedStyleForMultiline: no_comma
|
533
|
+
|
534
|
+
Style/TrailingCommaInBlockArgs:
|
535
|
+
Enabled: false
|
536
|
+
|
537
|
+
Style/TrailingCommaInHashLiteral:
|
538
|
+
Enabled: true
|
539
|
+
EnforcedStyleForMultiline: no_comma
|
540
|
+
|
541
|
+
Style/TrailingMethodEndStatement:
|
542
|
+
Enabled: true
|
543
|
+
|
544
|
+
Style/TrailingUnderscoreVariable:
|
545
|
+
Enabled: true
|
546
|
+
AllowNamedUnderscoreVariables: true
|
547
|
+
|
548
|
+
Style/TrivialAccessors:
|
549
|
+
Enabled: false
|
550
|
+
|
551
|
+
Style/UnlessElse:
|
552
|
+
Enabled: false
|
553
|
+
|
554
|
+
Style/RedundantCapitalW:
|
555
|
+
Enabled: true
|
556
|
+
|
557
|
+
Style/RedundantCondition:
|
558
|
+
Enabled: true
|
559
|
+
|
560
|
+
Style/RedundantInterpolation:
|
561
|
+
Enabled: true
|
562
|
+
|
563
|
+
Style/RedundantPercentQ:
|
564
|
+
Enabled: true
|
565
|
+
|
566
|
+
Style/RedundantSort:
|
567
|
+
Enabled: true
|
568
|
+
|
569
|
+
Style/UnpackFirst:
|
570
|
+
Enabled: true
|
571
|
+
|
572
|
+
Style/VariableInterpolation:
|
573
|
+
Enabled: true
|
574
|
+
|
575
|
+
Style/WhenThen:
|
576
|
+
Enabled: true
|
577
|
+
|
578
|
+
Style/WhileUntilDo:
|
579
|
+
Enabled: true
|
580
|
+
|
581
|
+
Style/WhileUntilModifier:
|
582
|
+
Enabled: false
|
583
|
+
|
584
|
+
Style/WordArray:
|
585
|
+
Enabled: true
|
586
|
+
EnforcedStyle: percent
|
587
|
+
MinSize: 2
|
588
|
+
|
589
|
+
Style/YodaCondition:
|
590
|
+
Enabled: false
|
591
|
+
EnforcedStyle: forbid_for_all_comparison_operators
|
592
|
+
|
593
|
+
Style/ZeroLengthPredicate:
|
594
|
+
Enabled: true
|