lifen-ruby-style 1.1.2 → 1.2.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.
data/default_rubocop.yml CHANGED
@@ -4,9 +4,8 @@ require:
4
4
  - rubocop-rails
5
5
 
6
6
  AllCops:
7
- DisplayStyleGuide: true
8
- NewCops: enable
9
- TargetRubyVersion: 2.5
7
+ DisabledByDefault: true
8
+ NewCops: disable
10
9
  Exclude:
11
10
  - "test/**/*.rb"
12
11
  - "bin/*"
@@ -17,160 +16,2132 @@ AllCops:
17
16
  - "spec/rails_helper.rb"
18
17
  - "node_modules/**/*"
19
18
 
19
+ #################### Bundler ###############################
20
+
21
+ Bundler/DuplicatedGem:
22
+ Enabled: true
23
+
24
+ Bundler/GemComment:
25
+ Enabled: false
26
+
27
+ Bundler/InsecureProtocolSource:
28
+ Enabled: true
29
+
30
+ Bundler/OrderedGems:
31
+ Enabled: true
32
+
33
+ #################### Gemspec ###############################
34
+
35
+ Gemspec/DuplicatedAssignment:
36
+ Enabled: true
37
+
38
+ Gemspec/OrderedDependencies:
39
+ Enabled: true
40
+
41
+ Gemspec/RequiredRubyVersion:
42
+ Enabled: true
43
+
44
+ Gemspec/RubyVersionGlobalsUsage:
45
+ Enabled: true
46
+
47
+ #################### Layout ###############################
48
+
49
+ Layout/AccessModifierIndentation:
50
+ Enabled: true
51
+
20
52
  Layout/ArgumentAlignment:
53
+ Enabled: true
21
54
  EnforcedStyle: with_fixed_indentation
22
55
 
56
+ Layout/ArrayAlignment:
57
+ Enabled: true
58
+
59
+ Layout/AssignmentIndentation:
60
+ Enabled: true
61
+
62
+ Layout/BeginEndAlignment:
63
+ Enabled: true
64
+
65
+ Layout/BlockAlignment:
66
+ Enabled: true
67
+
68
+ Layout/BlockEndNewline:
69
+ Enabled: true
70
+
23
71
  Layout/CaseIndentation:
72
+ Enabled: true
24
73
  EnforcedStyle: end
25
74
 
75
+ Layout/ClassStructure:
76
+ Enabled: false
77
+
78
+ Layout/ClosingHeredocIndentation:
79
+ Enabled: true
80
+
81
+ Layout/ClosingParenthesisIndentation:
82
+ Enabled: true
83
+
84
+ Layout/CommentIndentation:
85
+ Enabled: true
86
+
87
+ Layout/ConditionPosition:
88
+ Enabled: true
89
+
90
+ Layout/DefEndAlignment:
91
+ Enabled: true
92
+
93
+ Layout/DotPosition:
94
+ Enabled: true
95
+
96
+ Layout/ElseAlignment:
97
+ Enabled: true
98
+
99
+ Layout/EmptyComment:
100
+ Enabled: true
101
+
102
+ Layout/EmptyLineAfterGuardClause:
103
+ Enabled: true
104
+
105
+ Layout/EmptyLineAfterMagicComment:
106
+ Enabled: true
107
+
108
+ Layout/EmptyLineAfterMultilineCondition:
109
+ Enabled: false
110
+
111
+ Layout/EmptyLineBetweenDefs:
112
+ Enabled: true
113
+
114
+ Layout/EmptyLines:
115
+ Enabled: true
116
+
117
+ Layout/EmptyLinesAroundAccessModifier:
118
+ Enabled: true
119
+
120
+ Layout/EmptyLinesAroundArguments:
121
+ Enabled: true
122
+
123
+ Layout/EmptyLinesAroundAttributeAccessor:
124
+ Enabled: true
125
+
126
+ Layout/EmptyLinesAroundBeginBody:
127
+ Enabled: true
128
+
129
+ Layout/EmptyLinesAroundBlockBody:
130
+ Enabled: true
131
+
26
132
  Layout/EmptyLinesAroundClassBody:
133
+ Enabled: true
27
134
  EnforcedStyle: empty_lines
28
135
 
136
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
137
+ Enabled: true
138
+
139
+ Layout/EmptyLinesAroundMethodBody:
140
+ Enabled: true
141
+
29
142
  Layout/EmptyLinesAroundModuleBody:
143
+ Enabled: true
30
144
  EnforcedStyle: empty_lines_except_namespace
31
145
 
32
- Layout/EndAlignment:
33
- EnforcedStyleAlignWith: variable
146
+ Layout/EndAlignment:
147
+ Enabled: true
148
+ EnforcedStyleAlignWith: variable
149
+
150
+ Layout/EndOfLine:
151
+ Enabled: true
152
+
153
+ Layout/ExtraSpacing:
154
+ Enabled: true
155
+
156
+ Layout/FirstArgumentIndentation:
157
+ Enabled: true
158
+ EnforcedStyle: consistent
159
+
160
+ Layout/FirstArrayElementIndentation:
161
+ Enabled: true
162
+ EnforcedStyle: consistent
163
+
164
+ Layout/FirstArrayElementLineBreak:
165
+ Enabled: false
166
+
167
+ Layout/FirstHashElementIndentation:
168
+ Enabled: true
169
+ EnforcedStyle: consistent
170
+
171
+ Layout/FirstHashElementLineBreak:
172
+ Enabled: false
173
+
174
+ Layout/FirstMethodArgumentLineBreak:
175
+ Enabled: false
176
+
177
+ Layout/FirstMethodParameterLineBreak:
178
+ Enabled: false
179
+
180
+ Layout/FirstParameterIndentation:
181
+ Enabled: true
182
+
183
+ Layout/HashAlignment:
184
+ Enabled: true
185
+
186
+ Layout/HeredocArgumentClosingParenthesis:
187
+ Enabled: false
188
+
189
+ Layout/HeredocIndentation:
190
+ Enabled: true
191
+
192
+ Layout/IndentationConsistency:
193
+ Enabled: true
194
+ EnforcedStyle: indented_internal_methods
195
+
196
+ Layout/IndentationStyle:
197
+ Enabled: true
198
+
199
+ Layout/IndentationWidth:
200
+ Enabled: true
201
+
202
+ Layout/InitialIndentation:
203
+ Enabled: true
204
+
205
+ Layout/LeadingCommentSpace:
206
+ Enabled: true
207
+
208
+ Layout/LeadingEmptyLines:
209
+ Enabled: true
210
+
211
+ Layout/LineLength:
212
+ Enabled: false
213
+
214
+ Layout/MultilineArrayBraceLayout:
215
+ Enabled: true
216
+
217
+ Layout/MultilineArrayLineBreaks:
218
+ Enabled: false
219
+
220
+ Layout/MultilineAssignmentLayout:
221
+ Enabled: false
222
+
223
+ Layout/MultilineBlockLayout:
224
+ Enabled: true
225
+
226
+ Layout/MultilineHashBraceLayout:
227
+ Enabled: true
228
+
229
+ Layout/MultilineHashKeyLineBreaks:
230
+ Enabled: false
231
+
232
+ Layout/MultilineMethodArgumentLineBreaks:
233
+ Enabled: false
234
+
235
+ Layout/MultilineMethodCallBraceLayout:
236
+ Enabled: true
237
+
238
+ Layout/MultilineMethodCallIndentation:
239
+ Enabled: true
240
+ EnforcedStyle: indented
241
+
242
+ Layout/MultilineMethodDefinitionBraceLayout:
243
+ Enabled: true
244
+
245
+ Layout/MultilineOperationIndentation:
246
+ Enabled: true
247
+
248
+ Layout/ParameterAlignment:
249
+ Enabled: true
250
+ EnforcedStyle: with_fixed_indentation
251
+
252
+ Layout/RescueEnsureAlignment:
253
+ Enabled: true
254
+
255
+ Layout/SpaceAfterColon:
256
+ Enabled: true
257
+
258
+ Layout/SpaceAfterComma:
259
+ Enabled: true
260
+
261
+ Layout/SpaceAfterMethodName:
262
+ Enabled: true
263
+
264
+ Layout/SpaceAfterNot:
265
+ Enabled: true
266
+
267
+ Layout/SpaceAfterSemicolon:
268
+ Enabled: true
269
+
270
+ Layout/SpaceAroundBlockParameters:
271
+ Enabled: true
272
+
273
+ Layout/SpaceAroundEqualsInParameterDefault:
274
+ Enabled: true
275
+
276
+ Layout/SpaceAroundKeyword:
277
+ Enabled: true
278
+
279
+ Layout/SpaceAroundMethodCallOperator:
280
+ Enabled: true
281
+
282
+ Layout/SpaceAroundOperators:
283
+ Enabled: true
284
+
285
+ Layout/SpaceBeforeBlockBraces:
286
+ Enabled: true
287
+
288
+ Layout/SpaceBeforeComma:
289
+ Enabled: true
290
+
291
+ Layout/SpaceBeforeComment:
292
+ Enabled: true
293
+
294
+ Layout/SpaceBeforeFirstArg:
295
+ Enabled: true
296
+
297
+ Layout/SpaceBeforeSemicolon:
298
+ Enabled: true
299
+
300
+ Layout/SpaceInLambdaLiteral:
301
+ Enabled: true
302
+
303
+ Layout/SpaceInsideArrayLiteralBrackets:
304
+ Enabled: true
305
+
306
+ Layout/SpaceInsideArrayPercentLiteral:
307
+ Enabled: true
308
+
309
+ Layout/SpaceInsideBlockBraces:
310
+ Enabled: true
311
+
312
+ Layout/SpaceInsideHashLiteralBraces:
313
+ Enabled: true
314
+
315
+ Layout/SpaceInsideParens:
316
+ Enabled: true
317
+
318
+ Layout/SpaceInsidePercentLiteralDelimiters:
319
+ Enabled: true
320
+
321
+ Layout/SpaceInsideRangeLiteral:
322
+ Enabled: true
323
+
324
+ Layout/SpaceInsideReferenceBrackets:
325
+ Enabled: true
326
+
327
+ Layout/SpaceInsideStringInterpolation:
328
+ Enabled: true
329
+
330
+ Layout/TrailingEmptyLines:
331
+ Enabled: true
332
+
333
+ Layout/TrailingWhitespace:
334
+ Enabled: true
335
+
336
+ #################### Lint ###############################
337
+
338
+ Lint/AmbiguousBlockAssociation:
339
+ Enabled: true
340
+
341
+ Lint/AmbiguousOperator:
342
+ Enabled: true
343
+
344
+ Lint/AmbiguousRegexpLiteral:
345
+ Enabled: true
346
+
347
+ Lint/AssignmentInCondition:
348
+ Enabled: true
349
+
350
+ Lint/BigDecimalNew:
351
+ Enabled: true
352
+
353
+ Lint/BinaryOperatorWithIdenticalOperands:
354
+ Enabled: true
355
+
356
+ Lint/BooleanSymbol:
357
+ Enabled: true
358
+
359
+ Lint/CircularArgumentReference:
360
+ Enabled: true
361
+
362
+ Lint/ConstantDefinitionInBlock:
363
+ Enabled: true
364
+
365
+ Lint/ConstantResolution:
366
+ Enabled: false
367
+
368
+ Lint/Debugger:
369
+ Enabled: true
370
+
371
+ Lint/DeprecatedClassMethods:
372
+ Enabled: true
373
+
374
+ Lint/DeprecatedOpenSSLConstant:
375
+ Enabled: true
376
+
377
+ Lint/DisjunctiveAssignmentInConstructor:
378
+ Enabled: true
379
+
380
+ Lint/DuplicateBranch:
381
+ Enabled: pending
382
+
383
+ Lint/DuplicateCaseCondition:
384
+ Enabled: true
385
+
386
+ Lint/DuplicateElsifCondition:
387
+ Enabled: true
388
+
389
+ Lint/DuplicateHashKey:
390
+ Enabled: true
391
+
392
+ Lint/DuplicateMethods:
393
+ Enabled: true
394
+
395
+ Lint/DuplicateRegexpCharacterClassElement:
396
+ Enabled: true
397
+
398
+ Lint/DuplicateRequire:
399
+ Enabled: true
400
+
401
+ Lint/DuplicateRescueException:
402
+ Enabled: true
403
+
404
+ Lint/EachWithObjectArgument:
405
+ Enabled: true
406
+
407
+ Lint/ElseLayout:
408
+ Enabled: true
409
+
410
+ Lint/EmptyBlock:
411
+ Enabled: true
412
+
413
+ Lint/EmptyClass:
414
+ Enabled: true
415
+
416
+ Lint/EmptyConditionalBody:
417
+ Enabled: true
418
+
419
+ Lint/EmptyEnsure:
420
+ Enabled: true
421
+
422
+ Lint/EmptyExpression:
423
+ Enabled: true
424
+
425
+ Lint/EmptyFile:
426
+ Enabled: true
427
+
428
+ Lint/EmptyInterpolation:
429
+ Enabled: true
430
+
431
+ Lint/EmptyWhen:
432
+ Enabled: true
433
+
434
+ Lint/EnsureReturn:
435
+ Enabled: true
436
+
437
+ Lint/ErbNewArguments:
438
+ Enabled: true
439
+
440
+ Lint/FlipFlop:
441
+ Enabled: true
442
+
443
+ Lint/FloatComparison:
444
+ Enabled: true
445
+
446
+ Lint/FloatOutOfRange:
447
+ Enabled: true
448
+
449
+ Lint/FormatParameterMismatch:
450
+ Enabled: true
451
+
452
+ Lint/HashCompareByIdentity:
453
+ Enabled: true
454
+
455
+ Lint/HeredocMethodCallPosition:
456
+ Enabled: false
457
+
458
+ Lint/IdentityComparison:
459
+ Enabled: true
460
+
461
+ Lint/ImplicitStringConcatenation:
462
+ Enabled: true
463
+
464
+ Lint/IneffectiveAccessModifier:
465
+ Enabled: true
466
+
467
+ Lint/InheritException:
468
+ Enabled: true
469
+
470
+ Lint/InterpolationCheck:
471
+ Enabled: true
472
+
473
+ Lint/LiteralAsCondition:
474
+ Enabled: true
475
+
476
+ Lint/LiteralInInterpolation:
477
+ Enabled: true
478
+
479
+ Lint/Loop:
480
+ Enabled: true
481
+
482
+ Lint/MissingCopEnableDirective:
483
+ Enabled: true
484
+
485
+ Lint/MissingSuper:
486
+ Enabled: false
487
+
488
+ Lint/MixedRegexpCaptureTypes:
489
+ Enabled: true
490
+
491
+ Lint/MultipleComparison:
492
+ Enabled: true
493
+
494
+ Lint/NestedMethodDefinition:
495
+ Enabled: true
496
+
497
+ Lint/NestedPercentLiteral:
498
+ Enabled: true
499
+
500
+ Lint/NextWithoutAccumulator:
501
+ Enabled: true
502
+
503
+ Lint/NoReturnInBeginEndBlocks:
504
+ Enabled: true
505
+
506
+ Lint/NonDeterministicRequireOrder:
507
+ Enabled: true
508
+
509
+ Lint/NonLocalExitFromIterator:
510
+ Enabled: true
511
+
512
+ Lint/NumberConversion:
513
+ Enabled: false
514
+
515
+ Lint/OrderedMagicComments:
516
+ Enabled: true
517
+
518
+ Lint/OutOfRangeRegexpRef:
519
+ Enabled: true
520
+
521
+ Lint/ParenthesesAsGroupedExpression:
522
+ Enabled: true
523
+
524
+ Lint/PercentStringArray:
525
+ Enabled: true
526
+
527
+ Lint/PercentSymbolArray:
528
+ Enabled: true
529
+
530
+ Lint/RaiseException:
531
+ Enabled: true
532
+
533
+ Lint/RandOne:
534
+ Enabled: true
535
+
536
+ Lint/RedundantCopDisableDirective:
537
+ Enabled: true
538
+
539
+ Lint/RedundantCopEnableDirective:
540
+ Enabled: true
541
+
542
+ Lint/RedundantRequireStatement:
543
+ Enabled: true
544
+
545
+ Lint/RedundantSafeNavigation:
546
+ Enabled: true
547
+
548
+ Lint/RedundantSplatExpansion:
549
+ Enabled: true
550
+
551
+ Lint/RedundantStringCoercion:
552
+ Enabled: true
553
+
554
+ Lint/RedundantWithIndex:
555
+ Enabled: true
556
+
557
+ Lint/RedundantWithObject:
558
+ Enabled: true
559
+
560
+ Lint/RegexpAsCondition:
561
+ Enabled: true
562
+
563
+ Lint/RequireParentheses:
564
+ Enabled: true
565
+
566
+ Lint/RescueException:
567
+ Enabled: false
568
+
569
+ Lint/RescueType:
570
+ Enabled: true
571
+
572
+ Lint/ReturnInVoidContext:
573
+ Enabled: true
574
+
575
+ Lint/SafeNavigationChain:
576
+ Enabled: true
577
+
578
+ Lint/SafeNavigationConsistency:
579
+ Enabled: true
580
+
581
+ Lint/SafeNavigationWithEmpty:
582
+ Enabled: true
583
+
584
+ Lint/ScriptPermission:
585
+ Enabled: true
586
+
587
+ Lint/SelfAssignment:
588
+ Enabled: true
589
+
590
+ Lint/SendWithMixinArgument:
591
+ Enabled: true
592
+
593
+ Lint/ShadowedArgument:
594
+ Enabled: true
595
+
596
+ Lint/ShadowedException:
597
+ Enabled: true
598
+
599
+ Lint/ShadowingOuterLocalVariable:
600
+ Enabled: true
601
+
602
+ Lint/StructNewOverride:
603
+ Enabled: true
604
+
605
+ Lint/SuppressedException:
606
+ Enabled: true
607
+
608
+ Lint/Syntax:
609
+ Enabled: true
610
+
611
+ Lint/ToEnumArguments:
612
+ Enabled: true
613
+
614
+ Lint/ToJSON:
615
+ Enabled: true
616
+
617
+ Lint/TopLevelReturnWithArgument:
618
+ Enabled: true
619
+
620
+ Lint/TrailingCommaInAttributeDeclaration:
621
+ Enabled: true
622
+
623
+ Lint/UnderscorePrefixedVariableName:
624
+ Enabled: true
625
+
626
+ Lint/UnexpectedBlockArity:
627
+ Enabled: pending
628
+
629
+ Lint/UnifiedInteger:
630
+ Enabled: true
631
+
632
+ Lint/UnmodifiedReduceAccumulator:
633
+ Enabled: pending
634
+
635
+ Lint/UnreachableCode:
636
+ Enabled: true
637
+
638
+ Lint/UnreachableLoop:
639
+ Enabled: true
640
+
641
+ Lint/UnusedBlockArgument:
642
+ Enabled: true
643
+
644
+ Lint/UnusedMethodArgument:
645
+ Enabled: true
646
+
647
+ Lint/UriEscapeUnescape:
648
+ Enabled: true
649
+
650
+ Lint/UriRegexp:
651
+ Enabled: true
652
+
653
+ Lint/UselessAccessModifier:
654
+ Enabled: true
655
+
656
+ Lint/UselessAssignment:
657
+ Enabled: true
658
+
659
+ Lint/UselessElseWithoutRescue:
660
+ Enabled: true
661
+
662
+ Lint/UselessMethodDefinition:
663
+ Enabled: true
664
+
665
+ Lint/UselessSetterCall:
666
+ Enabled: true
667
+
668
+ Lint/UselessTimes:
669
+ Enabled: true
670
+
671
+ Lint/Void:
672
+ Enabled: true
673
+
674
+ #################### Metrics ###############################
675
+
676
+ Metrics/AbcSize:
677
+ Enabled: false
678
+
679
+ Metrics/BlockLength:
680
+ Enabled: false
681
+
682
+ Metrics/BlockNesting:
683
+ Enabled: true
684
+
685
+ Metrics/ClassLength:
686
+ Enabled: false
687
+
688
+ Metrics/CyclomaticComplexity:
689
+ Enabled: false
690
+
691
+ Metrics/MethodLength:
692
+ Enabled: false
693
+
694
+ Metrics/ModuleLength:
695
+ Enabled: false
696
+
697
+ Metrics/ParameterLists:
698
+ Enabled: false
699
+
700
+ Metrics/PerceivedComplexity:
701
+ Enabled: false
702
+
703
+ #################### Migration ###############################
704
+
705
+ Migration/DepartmentName:
706
+ Enabled: true
707
+
708
+ #################### Naming ###############################
709
+
710
+ Naming/AccessorMethodName:
711
+ Enabled: true
712
+
713
+ Naming/AsciiIdentifiers:
714
+ Enabled: true
715
+
716
+ Naming/BinaryOperatorParameterName:
717
+ Enabled: true
718
+
719
+ Naming/BlockParameterName:
720
+ Enabled: true
721
+
722
+ Naming/ClassAndModuleCamelCase:
723
+ Enabled: true
724
+
725
+ Naming/ConstantName:
726
+ Enabled: true
727
+
728
+ Naming/FileName:
729
+ Enabled: true
730
+
731
+ Naming/HeredocDelimiterCase:
732
+ Enabled: true
733
+
734
+ Naming/HeredocDelimiterNaming:
735
+ Enabled: true
736
+
737
+ Naming/MemoizedInstanceVariableName:
738
+ EnforcedStyleForLeadingUnderscores: required
739
+
740
+ Naming/MethodName:
741
+ Enabled: true
742
+
743
+ Naming/MethodParameterName:
744
+ Enabled: true
745
+
746
+ Naming/PredicateName:
747
+ Enabled: false
748
+
749
+ Naming/RescuedExceptionsVariableName:
750
+ Enabled: true
751
+
752
+ Naming/VariableName:
753
+ Enabled: false
754
+
755
+ Naming/VariableNumber:
756
+ Enabled: false
757
+
758
+ #################### Security ###############################
759
+
760
+ Security/Eval:
761
+ Enabled: true
762
+
763
+ Security/JSONLoad:
764
+ Enabled: true
765
+
766
+ Security/MarshalLoad:
767
+ Enabled: true
768
+
769
+ Security/Open:
770
+ Enabled: true
771
+
772
+ Security/YAMLLoad:
773
+ Enabled: true
774
+
775
+ #################### Style ###############################
776
+
777
+ Style/AccessModifierDeclarations:
778
+ Enabled: true
779
+
780
+ Style/AccessorGrouping:
781
+ Enabled: true
782
+
783
+ Style/Alias:
784
+ Enabled: true
785
+
786
+ Style/AndOr:
787
+ Enabled: true
788
+
789
+ Style/ArgumentsForwarding:
790
+ Enabled: pending
791
+
792
+ Style/ArrayCoercion:
793
+ Enabled: false
794
+
795
+ Style/ArrayJoin:
796
+ Enabled: true
797
+
798
+ Style/AsciiComments:
799
+ Enabled: true
800
+
801
+ Style/Attr:
802
+ Enabled: true
803
+
804
+ Style/AutoResourceCleanup:
805
+ Enabled: false
806
+
807
+ Style/BarePercentLiterals:
808
+ Enabled: true
809
+
810
+ Style/BeginBlock:
811
+ Enabled: true
812
+
813
+ Style/BisectedAttrAccessor:
814
+ Enabled: true
815
+
816
+ Style/BlockComments:
817
+ Enabled: true
818
+
819
+ Style/BlockDelimiters:
820
+ Enabled: true
821
+ EnforcedStyle: braces_for_chaining
822
+
823
+ Style/CaseEquality:
824
+ Enabled: true
825
+
826
+ Style/CaseLikeIf:
827
+ Enabled: true
828
+
829
+ Style/CharacterLiteral:
830
+ Enabled: true
831
+
832
+ Style/ClassAndModuleChildren:
833
+ Enabled: false
834
+
835
+ Style/ClassCheck:
836
+ Enabled: true
837
+
838
+ Style/ClassEqualityComparison:
839
+ Enabled: true
840
+
841
+ Style/ClassMethods:
842
+ Enabled: true
843
+
844
+ Style/ClassMethodsDefinitions:
845
+ Enabled: false
846
+
847
+ Style/ClassVars:
848
+ Enabled: true
849
+
850
+ Style/CollectionCompact:
851
+ Enabled: true
852
+
853
+ Style/CollectionMethods:
854
+ Enabled: false
855
+
856
+ Style/ColonMethodCall:
857
+ Enabled: true
858
+
859
+ Style/ColonMethodDefinition:
860
+ Enabled: true
861
+
862
+ Style/CombinableLoops:
863
+ Enabled: true
864
+
865
+ Style/CommandLiteral:
866
+ Enabled: true
867
+
868
+ Style/CommentAnnotation:
869
+ Enabled: true
870
+
871
+ Style/CommentedKeyword:
872
+ Enabled: true
873
+
874
+ Style/ConditionalAssignment:
875
+ Enabled: true
876
+
877
+ Style/ConstantVisibility:
878
+ Enabled: false
879
+
880
+ # Style/Copyright:
881
+
882
+ # Enabled: true
883
+
884
+ Style/Copyright:
885
+ Enabled: false
886
+
887
+ Style/DateTime:
888
+ Enabled: false
889
+
890
+ Style/DefWithParentheses:
891
+ Enabled: true
892
+
893
+ Style/Dir:
894
+ Enabled: true
895
+
896
+ Style/DisableCopsWithinSourceCodeDirective:
897
+ Enabled: false
898
+
899
+ Style/DocumentDynamicEvalDefinition:
900
+ Enabled: pending
901
+
902
+ Style/Documentation:
903
+ Enabled: false
904
+
905
+ Style/DocumentationMethod:
906
+ Enabled: false
907
+
908
+ Style/DoubleCopDisableDirective:
909
+ Enabled: true
910
+
911
+ Style/DoubleNegation:
912
+ Enabled: true
913
+
914
+ Style/EachForSimpleLoop:
915
+ Enabled: true
916
+
917
+ Style/EachWithObject:
918
+ Enabled: true
919
+
920
+ Style/EmptyBlockParameter:
921
+ Enabled: true
922
+
923
+ Style/EmptyCaseCondition:
924
+ Enabled: true
925
+
926
+ Style/EmptyElse:
927
+ Enabled: true
928
+
929
+ Style/EmptyLambdaParameter:
930
+ Enabled: true
931
+
932
+ Style/EmptyLiteral:
933
+ Enabled: true
934
+
935
+ Style/EmptyMethod:
936
+ Enabled: true
937
+
938
+ Style/Encoding:
939
+ Enabled: true
940
+
941
+ Style/EndBlock:
942
+ Enabled: true
943
+
944
+ Style/EvalWithLocation:
945
+ Enabled: false
946
+
947
+ Style/EvenOdd:
948
+ Enabled: true
949
+
950
+ Style/ExpandPathArguments:
951
+ Enabled: true
952
+
953
+ Style/ExplicitBlockArgument:
954
+ Enabled: true
955
+ AutoCorrect: false
956
+
957
+ Style/ExponentialNotation:
958
+ Enabled: true
959
+
960
+ Style/FloatDivision:
961
+ Enabled: true
962
+
963
+ Style/For:
964
+ Enabled: true
965
+
966
+ Style/FormatString:
967
+ Enabled: true
968
+
969
+ Style/FormatStringToken:
970
+ Enabled: true
971
+
972
+ Style/FrozenStringLiteralComment:
973
+ Enabled: true
974
+ Exclude:
975
+ - spec/lib/tasks/deployment/**/*
976
+
977
+ Style/GlobalStdStream:
978
+ Enabled: true
979
+
980
+ Style/GlobalVars:
981
+ Enabled: true
982
+
983
+ Style/GuardClause:
984
+ Enabled: false
985
+
986
+ Style/HashAsLastArrayItem:
987
+ Enabled: true
988
+
989
+ Style/HashEachMethods:
990
+ Enabled: true
991
+
992
+ Style/HashLikeCase:
993
+ Enabled: true
994
+
995
+ Style/HashSyntax:
996
+ Enabled: true
997
+
998
+ Style/HashTransformKeys:
999
+ Enabled: true
1000
+
1001
+ Style/HashTransformValues:
1002
+ Enabled: true
1003
+
1004
+ Style/IdenticalConditionalBranches:
1005
+ Enabled: true
1006
+
1007
+ Style/IfInsideElse:
1008
+ Enabled: true
1009
+
1010
+ Style/IfUnlessModifier:
1011
+ Enabled: false
1012
+
1013
+ Style/IfUnlessModifierOfIfUnless:
1014
+ Enabled: true
1015
+
1016
+ Style/IfWithSemicolon:
1017
+ Enabled: true
1018
+
1019
+ Style/ImplicitRuntimeError:
1020
+ Enabled: false
1021
+
1022
+ Style/InfiniteLoop:
1023
+ Enabled: true
1024
+
1025
+ Style/InlineComment:
1026
+ Enabled: false
1027
+
1028
+ Style/InverseMethods:
1029
+ Enabled: true
1030
+
1031
+ Style/IpAddresses:
1032
+ Enabled: false
1033
+
1034
+ Style/KeywordParametersOrder:
1035
+ Enabled: true
1036
+
1037
+ Style/Lambda:
1038
+ Enabled: true
1039
+
1040
+ Style/LambdaCall:
1041
+ Enabled: true
1042
+
1043
+ Style/LineEndConcatenation:
1044
+ Enabled: true
1045
+
1046
+ Style/MethodCallWithArgsParentheses:
1047
+ Enabled: false
1048
+
1049
+ Style/MethodCallWithoutArgsParentheses:
1050
+ Enabled: true
1051
+
1052
+ Style/MethodCalledOnDoEndBlock:
1053
+ Enabled: false
1054
+
1055
+ Style/MethodDefParentheses:
1056
+ Enabled: true
1057
+
1058
+ Style/MinMax:
1059
+ Enabled: true
1060
+
1061
+ Style/MissingElse:
1062
+ Enabled: false
1063
+
1064
+ Style/MissingRespondToMissing:
1065
+ Enabled: true
1066
+
1067
+ Style/MixinGrouping:
1068
+ Enabled: true
1069
+
1070
+ Style/MixinUsage:
1071
+ Enabled: true
1072
+
1073
+ Style/ModuleFunction:
1074
+ Enabled: true
1075
+
1076
+ Style/MultilineBlockChain:
1077
+ Enabled: true
1078
+
1079
+ Style/MultilineIfModifier:
1080
+ Enabled: true
1081
+
1082
+ Style/MultilineIfThen:
1083
+ Enabled: true
1084
+
1085
+ Style/MultilineMemoization:
1086
+ Enabled: true
1087
+
1088
+ Style/MultilineMethodSignature:
1089
+ Enabled: false
1090
+
1091
+ Style/MultilineTernaryOperator:
1092
+ Enabled: true
1093
+
1094
+ Style/MultilineWhenThen:
1095
+ Enabled: true
1096
+
1097
+ Style/MultipleComparison:
1098
+ Enabled: true
1099
+
1100
+ Style/MutableConstant:
1101
+ Enabled: true
1102
+
1103
+ Style/NegatedIf:
1104
+ Enabled: false
1105
+
1106
+ Style/NegatedIfElseCondition:
1107
+ Enabled: false
1108
+
1109
+ Style/NegatedUnless:
1110
+ Enabled: false
1111
+
1112
+ Style/NegatedWhile:
1113
+ Enabled: false
1114
+
1115
+ Style/NestedModifier:
1116
+ Enabled: true
1117
+
1118
+ Style/NestedParenthesizedCalls:
1119
+ Enabled: true
1120
+
1121
+ Style/NestedTernaryOperator:
1122
+ Enabled: true
1123
+
1124
+ Style/Next:
1125
+ Enabled: true
1126
+
1127
+ Style/NilComparison:
1128
+ Enabled: true
1129
+
1130
+ Style/NilLambda:
1131
+ Enabled: true
1132
+
1133
+ Style/NonNilCheck:
1134
+ Enabled: true
1135
+
1136
+ Style/Not:
1137
+ Enabled: true
1138
+
1139
+ Style/NumericLiteralPrefix:
1140
+ Enabled: true
1141
+
1142
+ Style/NumericLiterals:
1143
+ Enabled: true
1144
+ Strict: true
1145
+
1146
+ Style/NumericPredicate:
1147
+ Enabled: true
1148
+
1149
+ Style/OneLineConditional:
1150
+ Enabled: true
1151
+
1152
+ Style/OptionHash:
1153
+ Enabled: false
1154
+
1155
+ Style/OptionalArguments:
1156
+ Enabled: true
1157
+
1158
+ Style/OptionalBooleanParameter:
1159
+ Enabled: true
1160
+
1161
+ Style/OrAssignment:
1162
+ Enabled: true
1163
+
1164
+ Style/ParallelAssignment:
1165
+ Enabled: true
1166
+
1167
+ Style/ParenthesesAroundCondition:
1168
+ Enabled: true
1169
+
1170
+ Style/PercentLiteralDelimiters:
1171
+ Enabled: true
1172
+
1173
+ Style/PercentQLiterals:
1174
+ Enabled: true
1175
+
1176
+ Style/PerlBackrefs:
1177
+ Enabled: true
1178
+
1179
+ Style/PreferredHashMethods:
1180
+ Enabled: true
1181
+
1182
+ Style/Proc:
1183
+ Enabled: true
1184
+
1185
+ Style/RaiseArgs:
1186
+ Enabled: true
1187
+
1188
+ Style/RandomWithOffset:
1189
+ Enabled: true
1190
+
1191
+ Style/RedundantArgument:
1192
+ Enabled: true
1193
+
1194
+ Style/RedundantAssignment:
1195
+ Enabled: true
1196
+
1197
+ Style/RedundantBegin:
1198
+ Enabled: true
1199
+
1200
+ Style/RedundantCapitalW:
1201
+ Enabled: true
1202
+
1203
+ Style/RedundantCondition:
1204
+ Enabled: true
1205
+
1206
+ Style/RedundantConditional:
1207
+ Enabled: true
1208
+
1209
+ Style/RedundantException:
1210
+ Enabled: true
1211
+
1212
+ Style/RedundantFetchBlock:
1213
+ Enabled: true
1214
+
1215
+ Style/RedundantFileExtensionInRequire:
1216
+ Enabled: true
1217
+
1218
+ Style/RedundantFreeze:
1219
+ Enabled: true
1220
+
1221
+ Style/RedundantInterpolation:
1222
+ Enabled: true
1223
+
1224
+ Style/RedundantParentheses:
1225
+ Enabled: true
1226
+
1227
+ Style/RedundantPercentQ:
1228
+ Enabled: true
1229
+
1230
+ Style/RedundantRegexpCharacterClass:
1231
+ Enabled: true
1232
+
1233
+ Style/RedundantRegexpEscape:
1234
+ Enabled: true
1235
+
1236
+ Style/RedundantReturn:
1237
+ Enabled: true
1238
+
1239
+ Style/RedundantSelf:
1240
+ Enabled: true
1241
+
1242
+ Style/RedundantSelfAssignment:
1243
+ Enabled: true
1244
+
1245
+ Style/RedundantSort:
1246
+ Enabled: true
1247
+
1248
+ Style/RedundantSortBy:
1249
+ Enabled: true
1250
+
1251
+ Style/RegexpLiteral:
1252
+ Enabled: true
1253
+ AllowInnerSlashes: true
1254
+
1255
+ Style/RescueModifier:
1256
+ Enabled: true
1257
+
1258
+ Style/RescueStandardError:
1259
+ Enabled: true
1260
+
1261
+ Style/ReturnNil:
1262
+ Enabled: false
1263
+
1264
+ Style/SafeNavigation:
1265
+ Enabled: true
1266
+
1267
+ Style/Sample:
1268
+ Enabled: true
1269
+
1270
+ Style/SelfAssignment:
1271
+ Enabled: true
1272
+
1273
+ Style/Semicolon:
1274
+ Enabled: true
1275
+
1276
+ Style/Send:
1277
+ Enabled: false
1278
+
1279
+ Style/SignalException:
1280
+ Enabled: true
1281
+
1282
+ Style/SingleArgumentDig:
1283
+ Enabled: true
1284
+
1285
+ Style/SingleLineBlockParams:
1286
+ Enabled: false
1287
+
1288
+ Style/SingleLineMethods:
1289
+ Enabled: true
1290
+
1291
+ Style/SlicingWithRange:
1292
+ Enabled: true
1293
+
1294
+ Style/SoleNestedConditional:
1295
+ Enabled: true
1296
+
1297
+ Style/SpecialGlobalVars:
1298
+ Enabled: true
1299
+
1300
+ Style/StabbyLambdaParentheses:
1301
+ Enabled: true
1302
+
1303
+ Style/StaticClass:
1304
+ Enabled: false
1305
+
1306
+ Style/StderrPuts:
1307
+ Enabled: true
1308
+
1309
+ Style/StringConcatenation:
1310
+ Enabled: true
1311
+
1312
+ Style/StringHashKeys:
1313
+ Enabled: false
1314
+
1315
+ Style/StringLiterals:
1316
+ Enabled: true
1317
+
1318
+ Style/StringLiteralsInInterpolation:
1319
+ Enabled: true
1320
+
1321
+ Style/StringMethods:
1322
+ Enabled: false
1323
+
1324
+ Style/Strip:
1325
+ Enabled: true
1326
+
1327
+ Style/StructInheritance:
1328
+ Enabled: false
1329
+
1330
+ Style/SwapValues:
1331
+ Enabled: false
1332
+
1333
+ Style/SymbolArray:
1334
+ Enabled: true
1335
+ EnforcedStyle: brackets
1336
+
1337
+ Style/SymbolLiteral:
1338
+ Enabled: true
1339
+
1340
+ Style/SymbolProc:
1341
+ Enabled: true
1342
+
1343
+ Style/TernaryParentheses:
1344
+ Enabled: true
1345
+
1346
+ Style/TrailingBodyOnClass:
1347
+ Enabled: true
1348
+
1349
+ Style/TrailingBodyOnMethodDefinition:
1350
+ Enabled: true
1351
+
1352
+ Style/TrailingBodyOnModule:
1353
+ Enabled: true
1354
+
1355
+ Style/TrailingCommaInArguments:
1356
+ Enabled: true
1357
+ EnforcedStyleForMultiline: comma
1358
+
1359
+ Style/TrailingCommaInArrayLiteral:
1360
+ Enabled: true
1361
+ EnforcedStyleForMultiline: comma
1362
+
1363
+ Style/TrailingCommaInBlockArgs:
1364
+ Enabled: false
1365
+
1366
+ Style/TrailingCommaInHashLiteral:
1367
+ EnforcedStyleForMultiline: comma
1368
+ Enabled: true
1369
+
1370
+ Style/TrailingMethodEndStatement:
1371
+ Enabled: true
1372
+
1373
+ Style/TrailingUnderscoreVariable:
1374
+ Enabled: true
1375
+
1376
+ Style/TrivialAccessors:
1377
+ Enabled: true
1378
+
1379
+ Style/UnlessElse:
1380
+ Enabled: true
1381
+
1382
+ Style/UnpackFirst:
1383
+ Enabled: true
1384
+
1385
+ Style/VariableInterpolation:
1386
+ Enabled: true
1387
+
1388
+ Style/WhenThen:
1389
+ Enabled: true
1390
+
1391
+ Style/WhileUntilDo:
1392
+ Enabled: true
1393
+
1394
+ Style/WhileUntilModifier:
1395
+ Enabled: true
1396
+
1397
+ Style/WordArray:
1398
+ Enabled: true
1399
+ EnforcedStyle: brackets
1400
+
1401
+ Style/YodaCondition:
1402
+ Enabled: true
1403
+
1404
+ Style/ZeroLengthPredicate:
1405
+ Enabled: true
1406
+
1407
+ #################### Performance ###############################
1408
+
1409
+ Performance/AncestorsInclude:
1410
+ Enabled: 'pending'
1411
+
1412
+ Performance/ArraySemiInfiniteRangeSlice:
1413
+ Enabled: false
1414
+
1415
+ Performance/BigDecimalWithNumericArgument:
1416
+ Enabled: 'pending'
1417
+
1418
+ Performance/BindCall:
1419
+ Enabled: true
1420
+
1421
+ Performance/BlockGivenWithExplicitBlock:
1422
+ Enabled: pending
1423
+
1424
+ Performance/Caller:
1425
+ Enabled: true
1426
+
1427
+ Performance/CaseWhenSplat:
1428
+ Enabled: false
1429
+
1430
+ Performance/Casecmp:
1431
+ Enabled: true
1432
+
1433
+ Performance/ChainArrayAllocation:
1434
+ Enabled: false
1435
+
1436
+ Performance/CollectionLiteralInLoop:
1437
+ Enabled: true
1438
+
1439
+ Performance/CompareWithBlock:
1440
+ Enabled: true
1441
+
1442
+ Performance/ConstantRegexp:
1443
+ Enabled: true
1444
+
1445
+ Performance/Count:
1446
+ Enabled: true
1447
+
1448
+ Performance/DeletePrefix:
1449
+ Enabled: true
1450
+
1451
+ Performance/DeleteSuffix:
1452
+ Enabled: true
1453
+
1454
+ Performance/Detect:
1455
+ Enabled: true
1456
+
1457
+ Performance/DoubleStartEndWith:
1458
+ Enabled: true
1459
+
1460
+ Performance/EndWith:
1461
+ Enabled: true
1462
+
1463
+ Performance/FixedSize:
1464
+ Enabled: true
1465
+
1466
+ Performance/FlatMap:
1467
+ Enabled: true
1468
+
1469
+ Performance/InefficientHashSearch:
1470
+ Enabled: true
1471
+
1472
+ Performance/IoReadlines:
1473
+ Enabled: false
1474
+
1475
+ Performance/MethodObjectAsBlock:
1476
+ Enabled: true
1477
+
1478
+ Performance/OpenStruct:
1479
+ Enabled: false
1480
+
1481
+ Performance/RangeInclude:
1482
+ Enabled: true
1483
+
1484
+ Performance/RedundantBlockCall:
1485
+ Enabled: true
1486
+
1487
+ Performance/RedundantMatch:
1488
+ Enabled: true
1489
+
1490
+ Performance/RedundantMerge:
1491
+ Enabled: true
1492
+
1493
+ Performance/RedundantSortBlock:
1494
+ Enabled: true
1495
+
1496
+ Performance/RedundantStringChars:
1497
+ Enabled: true
1498
+
1499
+ Performance/RegexpMatch:
1500
+ Enabled: true
1501
+
1502
+ Performance/ReverseEach:
1503
+ Enabled: true
1504
+
1505
+ Performance/ReverseFirst:
1506
+ Enabled: 'pending'
1507
+
1508
+ Performance/Size:
1509
+ Enabled: true
1510
+
1511
+ Performance/SortReverse:
1512
+ Enabled: 'pending'
1513
+
1514
+ Performance/Squeeze:
1515
+ Enabled: 'pending'
1516
+
1517
+ Performance/StartWith:
1518
+ Enabled: true
1519
+
1520
+ Performance/StringInclude:
1521
+ Enabled: true
1522
+
1523
+ Performance/StringReplacement:
1524
+ Enabled: true
1525
+
1526
+ Performance/Sum:
1527
+ Enabled: 'pending'
1528
+
1529
+ Performance/TimesMap:
1530
+ Enabled: true
1531
+
1532
+ Performance/UnfreezeString:
1533
+ Enabled: true
1534
+
1535
+ Performance/UriDefaultParser:
1536
+ Enabled: true
1537
+
1538
+ #################### Rails ###############################
1539
+
1540
+ Rails/ActionFilter:
1541
+ Enabled: true
1542
+
1543
+ Rails/ActiveRecordAliases:
1544
+ Enabled: true
1545
+
1546
+ Rails/ActiveRecordCallbacksOrder:
1547
+ Enabled: 'pending'
1548
+
1549
+ Rails/ActiveRecordOverride:
1550
+ Enabled: true
1551
+
1552
+ Rails/ActiveSupportAliases:
1553
+ Enabled: true
1554
+
1555
+ Rails/AfterCommitOverride:
1556
+ Enabled: 'pending'
1557
+
1558
+ Rails/ApplicationController:
1559
+ Enabled: true
1560
+ AutoCorrect: false
1561
+
1562
+ Rails/ApplicationJob:
1563
+ Enabled: true
1564
+ AutoCorrect: false
1565
+
1566
+ Rails/ApplicationMailer:
1567
+ Enabled: true
1568
+
1569
+ Rails/ApplicationRecord:
1570
+ Enabled: true
1571
+
1572
+ Rails/ArelStar:
1573
+ Enabled: true
1574
+
1575
+ Rails/AssertNot:
1576
+ Enabled: true
1577
+
1578
+ Rails/AttributeDefaultBlockValue:
1579
+ Enabled: pending
1580
+
1581
+ Rails/BelongsTo:
1582
+ Enabled: true
1583
+
1584
+ Rails/Blank:
1585
+ Enabled: true
1586
+
1587
+ Rails/BulkChangeTable:
1588
+ Enabled: true
1589
+
1590
+ Rails/ContentTag:
1591
+ Enabled: true
1592
+
1593
+ Rails/CreateTableWithTimestamps:
1594
+ Enabled: true
1595
+
1596
+ Rails/Date:
1597
+ Enabled: true
1598
+
1599
+ Rails/DefaultScope:
1600
+ Enabled: false
1601
+
1602
+ Rails/Delegate:
1603
+ Enabled: true
1604
+
1605
+ Rails/DelegateAllowBlank:
1606
+ Enabled: true
1607
+
1608
+ Rails/DynamicFindBy:
1609
+ Enabled: true
1610
+ AutoCorrect: false
1611
+
1612
+ Rails/EnumHash:
1613
+ Enabled: true
1614
+
1615
+ Rails/EnumUniqueness:
1616
+ Enabled: true
1617
+
1618
+ Rails/EnvironmentComparison:
1619
+ Enabled: false
1620
+
1621
+ Rails/Exit:
1622
+ Enabled: true
1623
+
1624
+ Rails/FilePath:
1625
+ Enabled: true
1626
+
1627
+ Rails/FindBy:
1628
+ Enabled: true
1629
+
1630
+ Rails/FindById:
1631
+ Enabled: 'pending'
1632
+
1633
+ Rails/FindEach:
1634
+ Enabled: true
1635
+
1636
+ Rails/HasAndBelongsToMany:
1637
+ Enabled: true
1638
+
1639
+ Rails/HasManyOrHasOneDependent:
1640
+ Enabled: true
1641
+
1642
+ Rails/HelperInstanceVariable:
1643
+ Enabled: true
1644
+
1645
+ Rails/HttpPositionalArguments:
1646
+ Enabled: true
1647
+
1648
+ Rails/HttpStatus:
1649
+ Enabled: true
1650
+
1651
+ Rails/IgnoredSkipActionFilterOption:
1652
+ Enabled: true
1653
+
1654
+ Rails/IndexBy:
1655
+ Enabled: true
1656
+
1657
+ Rails/IndexWith:
1658
+ Enabled: true
34
1659
 
35
- Layout/FirstArgumentIndentation:
36
- EnforcedStyle: consistent
1660
+ Rails/Inquiry:
1661
+ Enabled: 'pending'
37
1662
 
38
- Layout/FirstArrayElementIndentation:
39
- EnforcedStyle: consistent
1663
+ Rails/InverseOf:
1664
+ Enabled: true
40
1665
 
41
- Layout/FirstHashElementIndentation:
42
- EnforcedStyle: consistent
1666
+ Rails/LexicallyScopedActionFilter:
1667
+ Enabled: true
43
1668
 
44
- Layout/IndentationConsistency:
45
- EnforcedStyle: indented_internal_methods
1669
+ Rails/LinkToBlank:
1670
+ Enabled: true
46
1671
 
47
- Layout/LineLength:
48
- Enabled: false
1672
+ Rails/MailerName:
1673
+ Enabled: 'pending'
49
1674
 
50
- Layout/MultilineMethodCallIndentation:
51
- EnforcedStyle: indented
1675
+ Rails/MatchRoute:
1676
+ Enabled: 'pending'
52
1677
 
53
- Layout/ParameterAlignment:
54
- EnforcedStyle: with_fixed_indentation
1678
+ Rails/NegateInclude:
1679
+ Enabled: 'pending'
55
1680
 
56
- Lint/RescueException:
57
- Enabled: false
1681
+ Rails/NotNullColumn:
1682
+ Enabled: true
58
1683
 
59
- Metrics/AbcSize:
1684
+ Rails/OrderById:
60
1685
  Enabled: false
61
1686
 
62
- Metrics/BlockLength:
63
- Enabled: false
1687
+ Rails/Output:
1688
+ Enabled: true
64
1689
 
65
- Metrics/ClassLength:
66
- Max: 250
1690
+ Rails/OutputSafety:
1691
+ Enabled: true
67
1692
 
68
- Metrics/CyclomaticComplexity:
1693
+ Rails/Pick:
1694
+ Enabled: true
1695
+
1696
+ Rails/Pluck:
1697
+ Enabled: 'pending'
1698
+
1699
+ Rails/PluckId:
69
1700
  Enabled: false
70
1701
 
71
- Metrics/MethodLength:
72
- Max: 40
1702
+ Rails/PluckInWhere:
1703
+ Enabled: 'pending'
73
1704
 
74
- Metrics/ModuleLength:
75
- Max: 250
1705
+ Rails/PluralizationGrammar:
1706
+ Enabled: true
76
1707
 
77
- Metrics/ParameterLists:
78
- Enabled: false
1708
+ Rails/Presence:
1709
+ Enabled: true
79
1710
 
80
- Metrics/PerceivedComplexity:
81
- Enabled: false
1711
+ Rails/Present:
1712
+ Enabled: true
82
1713
 
83
- Naming/MemoizedInstanceVariableName:
84
- EnforcedStyleForLeadingUnderscores: required
1714
+ Rails/RakeEnvironment:
1715
+ Enabled: true
85
1716
 
86
- Naming/VariableNumber:
87
- Enabled: false
1717
+ Rails/ReadWriteAttribute:
1718
+ Enabled: true
88
1719
 
89
- Style/BlockDelimiters:
90
- EnforcedStyle: braces_for_chaining
1720
+ Rails/RedundantAllowNil:
1721
+ Enabled: true
91
1722
 
92
- Style/ClassAndModuleChildren:
93
- Enabled: false
1723
+ Rails/RedundantForeignKey:
1724
+ Enabled: true
94
1725
 
95
- Style/ExplicitBlockArgument:
96
- AutoCorrect: false
1726
+ Rails/RedundantReceiverInWithOptions:
1727
+ Enabled: true
97
1728
 
98
- Style/Documentation:
99
- Enabled: false
1729
+ Rails/ReflectionClassName:
1730
+ Enabled: true
100
1731
 
101
- Style/TrailingCommaInArguments:
1732
+ Rails/RefuteMethods:
102
1733
  Enabled: true
103
- EnforcedStyleForMultiline: comma
104
1734
 
105
- Style/TrailingCommaInArrayLiteral:
1735
+ Rails/RelativeDateConstant:
106
1736
  Enabled: true
107
- EnforcedStyleForMultiline: comma
108
1737
 
109
- Style/TrailingCommaInHashLiteral:
1738
+ Rails/RenderInline:
1739
+ Enabled: 'pending'
1740
+
1741
+ Rails/RenderPlainText:
1742
+ Enabled: 'pending'
1743
+
1744
+ Rails/RequestReferer:
110
1745
  Enabled: true
111
- EnforcedStyleForMultiline: comma
112
1746
 
113
- Style/IfUnlessModifier:
1747
+ Rails/ReversibleMigration:
114
1748
  Enabled: true
115
- AutoCorrect: false
116
1749
 
117
- Style/NumericLiterals:
118
- Strict: true
1750
+ Rails/SafeNavigation:
1751
+ Enabled: true
119
1752
 
120
- Style/RegexpLiteral:
121
- AllowInnerSlashes: true
1753
+ Rails/SafeNavigationWithBlank:
1754
+ Enabled: true
122
1755
 
123
- Style/StructInheritance:
1756
+ Rails/SaveBang:
124
1757
  Enabled: false
125
1758
 
126
- Style/SymbolArray:
127
- EnforcedStyle: brackets
1759
+ Rails/ScopeArgs:
1760
+ Enabled: true
128
1761
 
129
- Style/WordArray:
130
- EnforcedStyle: brackets
1762
+ Rails/ShortI18n:
1763
+ Enabled: 'pending'
131
1764
 
132
- Rails/DynamicFindBy:
1765
+ Rails/SkipsModelValidations:
1766
+ Enabled: true
1767
+
1768
+ Rails/SquishedSQLHeredocs:
1769
+ Enabled: 'pending'
1770
+
1771
+ Rails/TimeZone:
1772
+ Enabled: true
1773
+
1774
+ Rails/UniqBeforePluck:
1775
+ Enabled: true
1776
+
1777
+ Rails/UniqueValidationWithoutIndex:
133
1778
  Enabled: true
134
- AutoCorrect: false
135
1779
 
136
1780
  Rails/UnknownEnv:
1781
+ Enabled: true
137
1782
  Environments:
138
- - production
139
1783
  - development
140
- - test
1784
+ - post-prod
1785
+ - production
1786
+ - review
141
1787
  - staging
1788
+ - test
1789
+
1790
+ Rails/Validation:
1791
+ Enabled: true
1792
+
1793
+ Rails/WhereEquals:
1794
+ Enabled: 'pending'
1795
+
1796
+ Rails/WhereExists:
1797
+ Enabled: 'pending'
1798
+
1799
+ Rails/WhereNot:
1800
+ Enabled: 'pending'
1801
+
1802
+ #################### RSpec ###############################
1803
+ RSpec:
1804
+ Include:
1805
+ - "**/*_spec.rb"
1806
+ - "**/spec/**/*"
1807
+ Language:
1808
+ ExampleGroups:
1809
+ Regular:
1810
+ - describe
1811
+ - context
1812
+ - feature
1813
+ - example_group
1814
+ Skipped:
1815
+ - xdescribe
1816
+ - xcontext
1817
+ - xfeature
1818
+ Focused:
1819
+ - fdescribe
1820
+ - fcontext
1821
+ - ffeature
1822
+ Examples:
1823
+ Regular:
1824
+ - it
1825
+ - specify
1826
+ - example
1827
+ - scenario
1828
+ - its
1829
+ Focused:
1830
+ - fit
1831
+ - fspecify
1832
+ - fexample
1833
+ - fscenario
1834
+ - focus
1835
+ Skipped:
1836
+ - xit
1837
+ - xspecify
1838
+ - xexample
1839
+ - xscenario
1840
+ - skip
1841
+ Pending:
1842
+ - pending
1843
+ Expectations:
1844
+ - expect
1845
+ - is_expected
1846
+ - expect_any_instance_of
1847
+ Helpers:
1848
+ - let
1849
+ - let!
1850
+ Hooks:
1851
+ - prepend_before
1852
+ - before
1853
+ - append_before
1854
+ - around
1855
+ - prepend_after
1856
+ - after
1857
+ - append_after
1858
+ HookScopes:
1859
+ - each
1860
+ - example
1861
+ - context
1862
+ - all
1863
+ - suite
1864
+ Includes:
1865
+ Examples:
1866
+ - it_behaves_like
1867
+ - it_should_behave_like
1868
+ - include_examples
1869
+ Context:
1870
+ - include_context
1871
+ Runners:
1872
+ - to
1873
+ - to_not
1874
+ - not_to
1875
+ SharedGroups:
1876
+ Examples:
1877
+ - shared_examples
1878
+ - shared_examples_for
1879
+ Context:
1880
+ - shared_context
1881
+ Subjects:
1882
+ - subject
1883
+ - subject!
1884
+
1885
+ RSpec/AlignLeftLetBrace:
1886
+ Enabled: false
1887
+
1888
+ RSpec/AlignRightLetBrace:
1889
+ Enabled: false
142
1890
 
143
1891
  RSpec/AnyInstance:
144
1892
  Enabled: false
145
1893
 
1894
+ RSpec/AroundBlock:
1895
+ Enabled: true
1896
+
1897
+ RSpec/Be:
1898
+ Enabled: true
1899
+
1900
+ RSpec/BeEql:
1901
+ Enabled: true
1902
+
1903
+ RSpec/BeforeAfterAll:
1904
+ Enabled: true
1905
+
1906
+ RSpec/ContextMethod:
1907
+ Enabled: true
1908
+
1909
+ RSpec/ContextWording:
1910
+ Enabled: true
1911
+
1912
+ RSpec/DescribeClass:
1913
+ Enabled: true
1914
+ Exclude:
1915
+ - spec/lib/tasks/deployment/**/*
1916
+
1917
+ RSpec/DescribeMethod:
1918
+ Enabled: true
1919
+
1920
+ RSpec/DescribeSymbol:
1921
+ Enabled: true
1922
+
146
1923
  RSpec/DescribedClass:
1924
+ Enabled: true
147
1925
  EnforcedStyle: explicit
148
1926
  Exclude:
149
1927
  - spec/lib/tasks/deployment/**/*
150
1928
 
1929
+ RSpec/DescribedClassModuleWrapping:
1930
+ Enabled: false
1931
+
1932
+ RSpec/Dialect:
1933
+ Enabled: false
1934
+
151
1935
  RSpec/EmptyExampleGroup:
152
1936
  Enabled: false
153
1937
 
1938
+ RSpec/EmptyHook:
1939
+ Enabled: true
1940
+
1941
+ RSpec/EmptyLineAfterExample:
1942
+ Enabled: true
1943
+
1944
+ RSpec/EmptyLineAfterExampleGroup:
1945
+ Enabled: true
1946
+
1947
+ RSpec/EmptyLineAfterFinalLet:
1948
+ Enabled: true
1949
+
1950
+ RSpec/EmptyLineAfterHook:
1951
+ Enabled: true
1952
+
1953
+ RSpec/EmptyLineAfterSubject:
1954
+ Enabled: true
1955
+
154
1956
  RSpec/ExampleLength:
155
1957
  Enabled: false
156
1958
 
1959
+ RSpec/ExampleWithoutDescription:
1960
+ Enabled: true
1961
+
1962
+ RSpec/ExampleWording:
1963
+ Enabled: true
1964
+
1965
+ RSpec/ExpectActual:
1966
+ Enabled: true
1967
+
1968
+ RSpec/ExpectChange:
1969
+ Enabled: true
1970
+
1971
+ RSpec/ExpectInHook:
1972
+ Enabled: true
1973
+
1974
+ RSpec/ExpectOutput:
1975
+ Enabled: true
1976
+
1977
+ RSpec/FilePath:
1978
+ Enabled: true
1979
+
1980
+ RSpec/Focus:
1981
+ Enabled: true
1982
+
157
1983
  RSpec/HookArgument:
1984
+ Enabled: true
158
1985
  EnforcedStyle: each
159
1986
 
1987
+ RSpec/HooksBeforeExamples:
1988
+ Enabled: true
1989
+
1990
+ RSpec/ImplicitBlockExpectation:
1991
+ Enabled: true
1992
+
1993
+ RSpec/ImplicitExpect:
1994
+ Enabled: true
1995
+
1996
+ RSpec/ImplicitSubject:
1997
+ Enabled: true
1998
+
1999
+ RSpec/InstanceSpy:
2000
+ Enabled: true
2001
+
2002
+ RSpec/InstanceVariable:
2003
+ Enabled: true
2004
+
2005
+ RSpec/ItBehavesLike:
2006
+ Enabled: true
2007
+
2008
+ RSpec/IteratedExpectation:
2009
+ Enabled: true
2010
+
2011
+ RSpec/LeadingSubject:
2012
+ Enabled: true
2013
+ Exclude:
2014
+ - spec/support/pundit.rb
2015
+
2016
+ RSpec/LeakyConstantDeclaration:
2017
+ Enabled: true
2018
+
2019
+ RSpec/LetBeforeExamples:
2020
+ Enabled: true
2021
+
160
2022
  RSpec/LetSetup:
161
2023
  Enabled: false
162
2024
 
2025
+ RSpec/MessageChain:
2026
+ Enabled: true
2027
+
2028
+ RSpec/MessageExpectation:
2029
+ Enabled: false
2030
+
2031
+ RSpec/MessageSpies:
2032
+ Enabled: true
2033
+
2034
+ RSpec/MissingExampleGroupArgument:
2035
+ Enabled: true
2036
+
2037
+ RSpec/MultipleDescribes:
2038
+ Enabled: true
2039
+
163
2040
  RSpec/MultipleExpectations:
164
2041
  Enabled: false
165
2042
 
166
2043
  RSpec/MultipleMemoizedHelpers:
167
2044
  Enabled: false
168
2045
 
2046
+ RSpec/MultipleSubjects:
2047
+ Enabled: true
2048
+
2049
+ RSpec/NamedSubject:
2050
+ Enabled: true
2051
+
169
2052
  RSpec/NestedGroups:
170
2053
  Enabled: false
171
2054
 
172
2055
  RSpec/NotToNot:
2056
+ Enabled: true
173
2057
  EnforcedStyle: to_not
174
2058
 
2059
+ RSpec/OverwritingSetup:
2060
+ Enabled: true
2061
+
2062
+ RSpec/Pending:
2063
+ Enabled: false
2064
+
2065
+ RSpec/PredicateMatcher:
2066
+ Enabled: true
2067
+
2068
+ RSpec/ReceiveCounts:
2069
+ Enabled: true
2070
+
2071
+ RSpec/ReceiveNever:
2072
+ Enabled: true
2073
+
175
2074
  RSpec/RepeatedDescription:
176
2075
  Enabled: false
2076
+
2077
+ RSpec/RepeatedExample:
2078
+ Enabled: true
2079
+
2080
+ RSpec/RepeatedExampleGroupBody:
2081
+ Enabled: true
2082
+
2083
+ RSpec/RepeatedExampleGroupDescription:
2084
+ Enabled: true
2085
+
2086
+ RSpec/RepeatedIncludeExample:
2087
+ Enabled: true
2088
+
2089
+ RSpec/ReturnFromStub:
2090
+ Enabled: true
2091
+
2092
+ RSpec/ScatteredLet:
2093
+ Enabled: true
2094
+
2095
+ RSpec/ScatteredSetup:
2096
+ Enabled: true
2097
+
2098
+ RSpec/SharedContext:
2099
+ Enabled: true
2100
+
2101
+ RSpec/SharedExamples:
2102
+ Enabled: true
2103
+
2104
+ RSpec/SingleArgumentMessageChain:
2105
+ Enabled: true
2106
+
2107
+ RSpec/StubbedMock:
2108
+ Enabled: true
2109
+
2110
+ RSpec/SubjectStub:
2111
+ Enabled: true
2112
+
2113
+ RSpec/UnspecifiedException:
2114
+ Enabled: true
2115
+
2116
+ RSpec/VariableDefinition:
2117
+ Enabled: true
2118
+
2119
+ RSpec/VariableName:
2120
+ Enabled: true
2121
+
2122
+ RSpec/VerifiedDoubles:
2123
+ Enabled: false
2124
+
2125
+ RSpec/VoidExpect:
2126
+ Enabled: true
2127
+
2128
+ RSpec/Yield:
2129
+ Enabled: true
2130
+
2131
+ RSpec/Capybara/CurrentPathExpectation:
2132
+ Enabled: true
2133
+
2134
+ RSpec/Capybara/VisibilityMatcher:
2135
+ Enabled: true
2136
+
2137
+ RSpec/FactoryBot/AttributeDefinedStatically:
2138
+ Enabled: true
2139
+
2140
+ RSpec/FactoryBot/CreateList:
2141
+ Enabled: true
2142
+
2143
+ RSpec/FactoryBot/FactoryClassName:
2144
+ Enabled: true
2145
+
2146
+ RSpec/Rails/HttpStatus:
2147
+ Enabled: true