spicerack-styleguide 0.23.6 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 717d63bbb2a013dc69ee279471ba6ce3f63ad344dcbd35b75b905ef4a8ea0c94
4
- data.tar.gz: 0075eaceaf461f3ec8edca85035ba9da6c8e9ab3e82a55beed02bfd7d06ba77c
3
+ metadata.gz: 4519dbd26d9358d4a353fc130339fe2e684ddd159af8d36269e0467f3cc90625
4
+ data.tar.gz: 753385719356c25e10a317b39e0294039817edf50e25a849d20d18962623b92f
5
5
  SHA512:
6
- metadata.gz: 9addbda3819766f3a90bb75e0d5409155c04ef6ec6c98d918a8ce8d11f4c57e200e000de1583b7bf5acfe1df4f5ceb66c9e14951c3c77cbdf8459a30c0bbde74
7
- data.tar.gz: 4c5d0b38dc058e0167748eac64b80f385e82e39e222fb82440d79188f64d45049e8323bdf645301db805fbff2134f335d59ff74a78166b8f1ed7ab6c90cbff7f
6
+ metadata.gz: a8d98650fec5c5ea324a1846ff7d68e43cd6f14de0d232f3dcb8aa7c32328684d42dac49c5385d10a0c28d20c3ae49c956a219d17fd3b39c28c7ecb83c34e1f4
7
+ data.tar.gz: 230c083f89490c2b94b71df055b70d21da6a88225e4f26923cf9f85e8ed05efebd2eb9d555b527feed9604050f8a5aaaaa231d660171021c587702c0dc25f0c7
@@ -3,6 +3,6 @@
3
3
  module Spicerack
4
4
  module Styleguide
5
5
  # This constant is managed by spicerack
6
- VERSION = "0.23.6"
6
+ VERSION = "0.25.1"
7
7
  end
8
8
  end
@@ -16,16 +16,12 @@ AllCops:
16
16
  Layout/AccessModifierIndentation:
17
17
  Enabled: true
18
18
  EnforcedStyle: indent
19
- Layout/AlignArray:
19
+ Layout/ArrayAlignment:
20
20
  Enabled: true
21
- Layout/AlignHash:
22
- Enabled: true
23
- EnforcedHashRocketStyle: key
24
- EnforcedColonStyle: key
25
- EnforcedLastArgumentHashStyle: always_inspect
26
- Layout/AlignParameters:
21
+ Layout/AssignmentIndentation:
22
+ Enabled: false
23
+ Layout/BeginEndAlignment:
27
24
  Enabled: true
28
- EnforcedStyle: with_first_parameter
29
25
  Layout/BlockAlignment:
30
26
  Enabled: true
31
27
  EnforcedStyleAlignWith: start_of_block
@@ -77,6 +73,8 @@ Layout/EmptyLinesAroundAccessModifier:
77
73
  EnforcedStyle: around
78
74
  Layout/EmptyLinesAroundArguments:
79
75
  Enabled: true
76
+ Layout/EmptyLinesAroundAttributeAccessor:
77
+ Enabled: true
80
78
  Layout/EmptyLinesAroundBeginBody:
81
79
  Enabled: true
82
80
  Layout/EmptyLinesAroundBlockBody:
@@ -104,36 +102,40 @@ Layout/ExtraSpacing:
104
102
  ForceEqualSignAlignment: false
105
103
  Exclude:
106
104
  - "**/*.gemspec"
105
+ Layout/FirstArgumentIndentation:
106
+ Enabled: true
107
+ Layout/FirstArrayElementIndentation:
108
+ Enabled: true
109
+ EnforcedStyle: consistent
107
110
  Layout/FirstArrayElementLineBreak:
108
111
  Enabled: false
112
+ Layout/FirstHashElementIndentation:
113
+ Enabled: true
114
+ EnforcedStyle: consistent
109
115
  Layout/FirstHashElementLineBreak:
110
116
  Enabled: false
111
117
  Layout/FirstMethodArgumentLineBreak:
112
118
  Enabled: true
113
119
  Layout/FirstMethodParameterLineBreak:
114
120
  Enabled: true
115
- Layout/HeredocArgumentClosingParenthesis:
116
- Enabled: true
117
- Lint/HeredocMethodCallPosition:
118
- Enabled: true
119
- Layout/IndentAssignment:
120
- Enabled: false
121
- Layout/IndentFirstArgument:
121
+ Layout/FirstParameterIndentation:
122
122
  Enabled: true
123
- Layout/IndentFirstArrayElement:
123
+ Layout/HashAlignment:
124
124
  Enabled: true
125
- EnforcedStyle: consistent
126
- Layout/IndentFirstHashElement:
125
+ EnforcedHashRocketStyle: key
126
+ EnforcedColonStyle: key
127
+ EnforcedLastArgumentHashStyle: always_inspect
128
+ Layout/HeredocArgumentClosingParenthesis:
127
129
  Enabled: true
128
- EnforcedStyle: consistent
129
- Layout/IndentFirstParameter:
130
+ Layout/HeredocIndentation:
130
131
  Enabled: true
131
- Layout/IndentHeredoc:
132
+ Lint/HeredocMethodCallPosition:
132
133
  Enabled: true
133
- EnforcedStyle: squiggly
134
134
  Layout/IndentationConsistency:
135
135
  Enabled: true
136
136
  EnforcedStyle: normal
137
+ Layout/IndentationStyle:
138
+ Enabled: true
137
139
  Layout/IndentationWidth:
138
140
  Enabled: true
139
141
  Width: 2
@@ -141,6 +143,9 @@ Layout/InitialIndentation:
141
143
  Enabled: true
142
144
  Layout/LeadingCommentSpace:
143
145
  Enabled: true
146
+ Layout/LineLength:
147
+ Enabled: false
148
+ Max: 120
144
149
  Layout/MultilineArrayBraceLayout:
145
150
  Enabled: true
146
151
  EnforcedStyle: symmetrical
@@ -163,6 +168,9 @@ Layout/MultilineMethodDefinitionBraceLayout:
163
168
  Layout/MultilineOperationIndentation:
164
169
  Enabled: true
165
170
  EnforcedStyle: aligned
171
+ Layout/ParameterAlignment:
172
+ Enabled: true
173
+ EnforcedStyle: with_first_parameter
166
174
  Layout/RescueEnsureAlignment:
167
175
  Enabled: true
168
176
  Layout/SpaceAfterColon:
@@ -183,6 +191,8 @@ Layout/SpaceAroundEqualsInParameterDefault:
183
191
  EnforcedStyle: space
184
192
  Layout/SpaceAroundKeyword:
185
193
  Enabled: true
194
+ Layout/SpaceAroundMethodCallOperator:
195
+ Enabled: true
186
196
  Layout/SpaceAroundOperators:
187
197
  Enabled: true
188
198
  Layout/SpaceBeforeBlockBraces:
@@ -226,9 +236,7 @@ Layout/SpaceInsideReferenceBrackets:
226
236
  EnforcedStyleForEmptyBrackets: no_space
227
237
  Layout/SpaceInsideStringInterpolation:
228
238
  EnforcedStyle: no_space
229
- Layout/Tab:
230
- Enabled: true
231
- Layout/TrailingBlankLines:
239
+ Layout/TrailingEmptyLines:
232
240
  Enabled: true
233
241
  EnforcedStyle: final_newline
234
242
  Layout/TrailingWhitespace:
@@ -246,45 +254,64 @@ Lint/AssignmentInCondition:
246
254
  Enabled: true
247
255
  Lint/BigDecimalNew:
248
256
  Enabled: false
257
+ Lint/BinaryOperatorWithIdenticalOperands:
258
+ Enabled: true
249
259
  Lint/BooleanSymbol:
250
260
  Enabled: true
251
261
  Lint/CircularArgumentReference:
252
262
  Enabled: true
263
+ Lint/ConstantDefinitionInBlock:
264
+ Enabled: true
265
+ Lint/ConstantResolution:
266
+ Enabled: false
253
267
  Lint/DisjunctiveAssignmentInConstructor:
254
268
  Enabled: true
255
269
  Lint/Debugger:
256
270
  Enabled: true
257
271
  Lint/DeprecatedClassMethods:
258
272
  Enabled: true
273
+ Lint/DeprecatedOpenSSLConstant:
274
+ Enabled: true
259
275
  Lint/DuplicateCaseCondition:
260
276
  Enabled: true
277
+ Lint/DuplicateElsifCondition:
278
+ Enabled: true
279
+ Lint/DuplicateHashKey:
280
+ Enabled: true
261
281
  Lint/DuplicateMethods:
262
282
  Enabled: true
263
- Lint/DuplicatedKey:
283
+ Lint/DuplicateRequire:
284
+ Enabled: true
285
+ Lint/DuplicateRescueException:
264
286
  Enabled: true
265
287
  Lint/EachWithObjectArgument:
266
288
  Enabled: true
267
289
  Lint/ElseLayout:
268
290
  Enabled: true
291
+ Lint/EmptyConditionalBody:
292
+ Enabled: true
269
293
  Lint/EmptyEnsure:
270
294
  Enabled: true
271
295
  Lint/EmptyExpression:
272
296
  Enabled: true
297
+ Lint/EmptyFile:
298
+ Enabled: true
273
299
  Lint/EmptyInterpolation:
274
300
  Enabled: true
275
301
  Lint/EmptyWhen:
276
302
  Enabled: true
277
- Lint/EndInMethod:
278
- Enabled: true
303
+ AllowComments: true
279
304
  Lint/EnsureReturn:
280
305
  Enabled: true
281
306
  Lint/FlipFlop:
282
307
  Enabled: true
308
+ Lint/FloatComparison:
309
+ Enabled: true
283
310
  Lint/FloatOutOfRange:
284
311
  Enabled: true
285
312
  Lint/FormatParameterMismatch:
286
313
  Enabled: true
287
- Lint/HandleExceptions:
314
+ Lint/IdentityComparison:
288
315
  Enabled: true
289
316
  Lint/ImplicitStringConcatenation:
290
317
  Enabled: true
@@ -303,7 +330,11 @@ Lint/Loop:
303
330
  Enabled: true
304
331
  Lint/MissingCopEnableDirective:
305
332
  Enabled: true
306
- Lint/MultipleCompare:
333
+ Lint/MissingSuper:
334
+ Enabled: true
335
+ Lint/MixedRegexpCaptureTypes:
336
+ Enabled: true
337
+ Lint/MultipleComparison:
307
338
  Enabled: true
308
339
  Lint/NestedMethodDefinition:
309
340
  Enabled: true
@@ -311,12 +342,16 @@ Lint/NestedPercentLiteral:
311
342
  Enabled: true
312
343
  Lint/NextWithoutAccumulator:
313
344
  Enabled: true
345
+ Lint/NonDeterministicRequireOrder:
346
+ Enabled: true
314
347
  Lint/NonLocalExitFromIterator:
315
348
  Enabled: true
316
349
  Lint/NumberConversion:
317
350
  Enabled: false
318
351
  Lint/OrderedMagicComments:
319
352
  Enabled: true
353
+ Lint/OutOfRangeRegexpRef:
354
+ Enabled: true
320
355
  Lint/ParenthesesAsGroupedExpression:
321
356
  Enabled: true
322
357
  Lint/PercentStringArray:
@@ -325,6 +360,8 @@ Lint/PercentSymbolArray:
325
360
  Enabled: true
326
361
  Lint/RandOne:
327
362
  Enabled: true
363
+ Lint/RedundantStringCoercion:
364
+ Enabled: true
328
365
  Lint/RedundantWithIndex:
329
366
  Enabled: true
330
367
  Lint/RedundantWithObject:
@@ -345,13 +382,17 @@ Lint/SafeNavigationWithEmpty:
345
382
  Enabled: true
346
383
  Lint/ScriptPermission:
347
384
  Enabled: true
385
+ Lint/SendWithMixinArgument:
386
+ Enabled: true
348
387
  Lint/ShadowedArgument:
349
388
  Enabled: true
350
389
  Lint/ShadowedException:
351
390
  Enabled: true
352
391
  Lint/ShadowingOuterLocalVariable:
353
392
  Enabled: true
354
- Lint/StringConversionInInterpolation:
393
+ Lint/StructNewOverride:
394
+ Enabled: true
395
+ Lint/SuppressedException:
355
396
  Enabled: true
356
397
  Lint/ToJSON:
357
398
  Enabled: true
@@ -359,16 +400,26 @@ Lint/UnderscorePrefixedVariableName:
359
400
  Enabled: true
360
401
  Lint/UnifiedInteger:
361
402
  Enabled: true
362
- Lint/UnneededCopDisableDirective:
403
+ Lint/RaiseException:
404
+ Enabled: true
405
+ Lint/RedundantCopDisableDirective:
406
+ Enabled: true
407
+ Lint/RedundantCopEnableDirective:
408
+ Enabled: true
409
+ Lint/RedundantRequireStatement:
410
+ Enabled: true
411
+ Lint/RedundantSplatExpansion:
363
412
  Enabled: true
364
- Lint/UnneededCopEnableDirective:
413
+ Lint/SelfAssignment:
365
414
  Enabled: true
366
- Lint/UnneededRequireStatement:
415
+ Lint/TopLevelReturnWithArgument:
367
416
  Enabled: true
368
- Lint/UnneededSplatExpansion:
417
+ Lint/TrailingCommaInAttributeDeclaration:
369
418
  Enabled: true
370
419
  Lint/UnreachableCode:
371
420
  Enabled: true
421
+ Lint/UnreachableLoop:
422
+ Enabled: true
372
423
  Lint/UnusedBlockArgument:
373
424
  Enabled: true
374
425
  Lint/UnusedMethodArgument:
@@ -381,12 +432,14 @@ Lint/UselessAccessModifier:
381
432
  Enabled: true
382
433
  Lint/UselessAssignment:
383
434
  Enabled: true
384
- Lint/UselessComparison:
385
- Enabled: true
386
435
  Lint/UselessElseWithoutRescue:
387
436
  Enabled: true
437
+ Lint/UselessMethodDefinition:
438
+ Enabled: true
388
439
  Lint/UselessSetterCall:
389
440
  Enabled: true
441
+ Lint/UselessTimes:
442
+ Enabled: true
390
443
  Lint/Void:
391
444
  Enabled: true
392
445
  CheckForMethodsWithNoSideEffects: true
@@ -414,9 +467,6 @@ Metrics/ClassLength:
414
467
  Metrics/CyclomaticComplexity:
415
468
  Enabled: true
416
469
  Max: 6
417
- Metrics/LineLength:
418
- Enabled: false
419
- Max: 120
420
470
  Metrics/MethodLength:
421
471
  Enabled: true
422
472
  Max: 24
@@ -436,6 +486,10 @@ Naming/AsciiIdentifiers:
436
486
  Enabled: true
437
487
  Naming/BinaryOperatorParameterName:
438
488
  Enabled: true
489
+ Naming/BlockParameterName:
490
+ Enabled: true
491
+ MinNameLength: 1
492
+ AllowNamesEndingInNumbers: true
439
493
  Naming/ClassAndModuleCamelCase:
440
494
  Enabled: true
441
495
  Naming/ConstantName:
@@ -452,17 +506,31 @@ Naming/MemoizedInstanceVariableName:
452
506
  Naming/MethodName:
453
507
  Enabled: true
454
508
  EnforcedStyle: snake_case
509
+ Naming/MethodParameterName:
510
+ Enabled: true
511
+ MinNameLength: 2
512
+ AllowNamesEndingInNumbers: true
513
+ AllowedNames:
514
+ - a
515
+ - b
516
+ - io
517
+ - id
518
+ - to
519
+ - by
520
+ - on
521
+ - in
522
+ - at
455
523
  Naming/PredicateName:
456
524
  Enabled: true
457
525
  NamePrefix:
458
526
  - is_
459
527
  - has_
460
528
  - have_
461
- NamePrefixBlacklist:
529
+ ForbiddenPrefixes:
462
530
  - is_
463
531
  - has_
464
532
  - have_
465
- NameWhitelist:
533
+ AllowedMethods:
466
534
  - is_a?
467
535
  MethodDefinitionMacros:
468
536
  - define_method
@@ -473,24 +541,6 @@ Naming/PredicateName:
473
541
  Naming/RescuedExceptionsVariableName:
474
542
  Enabled: true
475
543
  PreferredName: exception
476
- Naming/UncommunicativeBlockParamName:
477
- Enabled: true
478
- MinNameLength: 1
479
- AllowNamesEndingInNumbers: true
480
- Naming/UncommunicativeMethodParamName:
481
- Enabled: true
482
- MinNameLength: 2
483
- AllowNamesEndingInNumbers: true
484
- AllowedNames:
485
- - a
486
- - b
487
- - io
488
- - id
489
- - to
490
- - by
491
- - on
492
- - in
493
- - at
494
544
  Naming/VariableName:
495
545
  Enabled: true
496
546
  EnforcedStyle: snake_case
@@ -498,12 +548,18 @@ Naming/VariableNumber:
498
548
  Enabled: true
499
549
  EnforcedStyle: normalcase
500
550
 
551
+ Performance/AncestorsInclude:
552
+ Enabled: false
553
+ Performance/BigDecimalWithNumericArgument:
554
+ Enabled: false
501
555
  Performance/Caller:
502
556
  Enabled: false
503
557
  Performance/CaseWhenSplat:
504
558
  Enabled: true
505
559
  Performance/Casecmp:
506
560
  Enabled: true
561
+ Performance/CollectionLiteralInLoop:
562
+ Enabled: true
507
563
  Performance/CompareWithBlock:
508
564
  Enabled: true
509
565
  Performance/Count:
@@ -518,6 +574,8 @@ Performance/FixedSize:
518
574
  Enabled: true
519
575
  Performance/FlatMap:
520
576
  Enabled: true
577
+ Performance/IoReadlines:
578
+ Enabled: true
521
579
  Performance/OpenStruct:
522
580
  Enabled: true
523
581
  Exclude:
@@ -530,44 +588,71 @@ Performance/RedundantMatch:
530
588
  Enabled: true
531
589
  Performance/RedundantMerge:
532
590
  Enabled: true
591
+ Performance/RedundantSortBlock:
592
+ Enabled: true
593
+ Performance/RedundantStringChars:
594
+ Enabled: true
533
595
  Performance/RegexpMatch:
534
596
  Enabled: true
535
597
  Performance/ReverseEach:
536
598
  Enabled: true
599
+ Performance/ReverseFirst:
600
+ Enabled: true
537
601
  Performance/Size:
538
602
  Enabled: true
603
+ Performance/SortReverse:
604
+ Enabled: true
605
+ Performance/Squeeze:
606
+ Enabled: true
539
607
  Performance/StartWith:
540
608
  Enabled: true
609
+ Performance/StringInclude:
610
+ Enabled: true
541
611
  Performance/StringReplacement:
542
612
  Enabled: true
613
+ Performance/Sum:
614
+ Enabled: true
543
615
  Performance/TimesMap:
544
616
  Enabled: true
545
617
  Performance/UnfreezeString:
546
618
  Enabled: true
547
619
  Performance/UriDefaultParser:
548
620
  Enabled: true
621
+
549
622
  Rails/ActionFilter:
550
623
  Enabled: true
551
624
  EnforcedStyle: action
552
625
  Rails/ActiveRecordAliases:
553
626
  Enabled: true
627
+ Rails/ActiveRecordCallbacksOrder:
628
+ Enabled: true
554
629
  Rails/ActiveRecordOverride:
555
630
  Enabled: true
556
631
  Rails/ActiveSupportAliases:
557
632
  Enabled: true
633
+ Rails/ApplicationController:
634
+ Enabled: true
635
+ Rails/ApplicationMailer:
636
+ Enabled: true
558
637
  Rails/ApplicationJob:
559
638
  Enabled: true
560
639
  Rails/ApplicationRecord:
561
640
  Enabled: true
641
+ Rails/AfterCommitOverride:
642
+ Enabled: true
562
643
  Rails/BelongsTo:
563
644
  Enabled: true
564
645
  Rails/Blank:
565
646
  Enabled: true
647
+ Rails/ContentTag:
648
+ Enabled: true
566
649
  Rails/CreateTableWithTimestamps:
567
650
  Enabled: true
568
651
  Rails/Date:
569
652
  Enabled: true
570
653
  EnforcedStyle: flexible
654
+ Rails/DefaultScope:
655
+ Enabled: true
571
656
  Rails/Delegate:
572
657
  Enabled: true
573
658
  Rails/DelegateAllowBlank:
@@ -589,6 +674,8 @@ Rails/FindBy:
589
674
  Enabled: true
590
675
  Include:
591
676
  - app/models/**/*.rb
677
+ Rails/FindById:
678
+ Enabled: true
592
679
  Rails/FindEach:
593
680
  Enabled: true
594
681
  Include:
@@ -608,8 +695,14 @@ Rails/HttpPositionalArguments:
608
695
  Rails/HttpStatus:
609
696
  Enabled: true
610
697
  EnforcedStyle: symbolic
698
+ Rails/IndexBy:
699
+ Enabled: true
700
+ Rails/IndexWith:
701
+ Enabled: true
611
702
  Rails/IgnoredSkipActionFilterOption:
612
703
  Enabled: true
704
+ Rails/Inquiry:
705
+ Enabled: true
613
706
  Rails/InverseOf:
614
707
  Enabled: true
615
708
  Include:
@@ -620,10 +713,18 @@ Rails/LexicallyScopedActionFilter:
620
713
  - app/controllers/**/*.rb
621
714
  Rails/LinkToBlank:
622
715
  Enabled: true
716
+ Rails/MailerName:
717
+ Enabled: true
718
+ Rails/MatchRoute:
719
+ Enabled: true
720
+ Rails/NegateInclude:
721
+ Enabled: true
623
722
  Rails/NotNullColumn:
624
723
  Enabled: true
625
724
  Include:
626
725
  - db/migrate/*.rb
726
+ Rails/OrderById:
727
+ Enabled: true
627
728
  Rails/Output:
628
729
  Enabled: true
629
730
  Include:
@@ -633,6 +734,14 @@ Rails/Output:
633
734
  - lib/**/*.rb
634
735
  Rails/OutputSafety:
635
736
  Enabled: true
737
+ Rails/Pick:
738
+ Enabled: true
739
+ Rails/Pluck:
740
+ Enabled: true
741
+ Rails/PluckId:
742
+ Enabled: true
743
+ Rails/PluckInWhere:
744
+ Enabled: true
636
745
  Rails/PluralizationGrammar:
637
746
  Enabled: true
638
747
  Rails/Presence:
@@ -642,18 +751,28 @@ Rails/Present:
642
751
  NotNilAndNotEmpty: true
643
752
  NotBlank: true
644
753
  UnlessBlank: true
754
+ Rails/RakeEnvironment:
755
+ Enabled: true
645
756
  Rails/ReadWriteAttribute:
646
757
  Enabled: true
647
758
  Include:
648
759
  - app/models/**/*.rb
649
760
  Rails/RedundantAllowNil:
650
761
  Enabled: true
762
+ Rails/RedundantForeignKey:
763
+ Enabled: true
651
764
  Rails/RedundantReceiverInWithOptions:
652
765
  Enabled: true
653
766
  Rails/ReflectionClassName:
654
767
  Enabled: true
768
+ Rails/RefuteMethods:
769
+ Enabled: true
655
770
  Rails/RelativeDateConstant:
656
771
  Enabled: true
772
+ Rails/RenderInline:
773
+ Enabled: true
774
+ Rails/RenderPlainText:
775
+ Enabled: true
657
776
  Rails/RequestReferer:
658
777
  Enabled: true
659
778
  EnforcedStyle: referer
@@ -663,15 +782,19 @@ Rails/ReversibleMigration:
663
782
  - db/migrate/*.rb
664
783
  Rails/SafeNavigation:
665
784
  Enabled: true
785
+ Rails/SafeNavigationWithBlank:
786
+ Enabled: true
666
787
  Rails/SaveBang:
667
788
  Enabled: true
668
789
  Rails/ScopeArgs:
669
790
  Enabled: true
670
791
  Include:
671
792
  - app/models/**/*.rb
793
+ Rails/ShortI18n:
794
+ Enabled: true
672
795
  Rails/SkipsModelValidations:
673
796
  Enabled: true
674
- Blacklist:
797
+ ForbiddenMethods:
675
798
  - decrement!
676
799
  - decrement_counter
677
800
  - increment!
@@ -683,18 +806,26 @@ Rails/SkipsModelValidations:
683
806
  - update_column
684
807
  - update_columns
685
808
  - update_counters
809
+ Rails/SquishedSQLHeredocs:
810
+ Enabled: true
686
811
  Rails/TimeZone:
687
812
  Enabled: true
688
813
  EnforcedStyle: flexible
689
814
  Rails/UniqBeforePluck:
690
815
  Enabled: true
691
816
  EnforcedStyle: conservative
817
+ Rails/UniqueValidationWithoutIndex:
818
+ Enabled: true
692
819
  Rails/UnknownEnv:
693
820
  Enabled: true
694
821
  Environments:
695
822
  - development
696
823
  - test
697
824
  - production
825
+ Rails/WhereExists:
826
+ Enabled: true
827
+ Rails/WhereNot:
828
+ Enabled: true
698
829
  Rails/Validation:
699
830
  Enabled: true
700
831
  Include:
@@ -711,12 +842,16 @@ Security/Open:
711
842
  Security/YAMLLoad:
712
843
  Enabled: true
713
844
 
845
+ Style/AccessorGrouping:
846
+ Enabled: true
714
847
  Style/Alias:
715
848
  Enabled: true
716
849
  EnforcedStyle: prefer_alias_method
717
850
  Style/AndOr:
718
851
  Enabled: true
719
852
  EnforcedStyle: conditionals
853
+ Style/ArrayCoercion:
854
+ Enabled: true
720
855
  Style/ArrayJoin:
721
856
  Enabled: true
722
857
  Style/AsciiComments:
@@ -730,16 +865,17 @@ Style/BarePercentLiterals:
730
865
  EnforcedStyle: bare_percent
731
866
  Style/BeginBlock:
732
867
  Enabled: true
868
+ Style/BisectedAttrAccessor:
869
+ Enabled: true
733
870
  Style/BlockComments:
734
871
  Enabled: true
735
872
  Style/BlockDelimiters:
736
873
  Enabled: true
737
874
  EnforcedStyle: line_count_based
738
- Style/BracesAroundHashParameters:
739
- Enabled: true
740
- EnforcedStyle: context_dependent
741
875
  Style/CaseEquality:
742
876
  Enabled: true
877
+ Style/CaseLikeIf:
878
+ Enabled: true
743
879
  Style/CharacterLiteral:
744
880
  Enabled: true
745
881
  Style/ClassAndModuleChildren:
@@ -750,6 +886,9 @@ Style/ClassCheck:
750
886
  EnforcedStyle: is_a?
751
887
  Style/ClassMethods:
752
888
  Enabled: true
889
+ Style/ClassMethodsDefinitions:
890
+ Enabled: true
891
+ EnforcedStyle: self_class
753
892
  Style/ClassVars:
754
893
  Enabled: true
755
894
  Style/CollectionMethods:
@@ -758,6 +897,8 @@ Style/ColonMethodCall:
758
897
  Enabled: true
759
898
  Style/ColonMethodDefinition:
760
899
  Enabled: true
900
+ Style/CombinableLoops:
901
+ Enabled: true
761
902
  Style/CommandLiteral:
762
903
  Enabled: false
763
904
  Style/CommentAnnotation:
@@ -785,6 +926,8 @@ Style/DefWithParentheses:
785
926
  Enabled: true
786
927
  Style/Dir:
787
928
  Enabled: true
929
+ Style/DisableCopsWithinSourceCodeDirective:
930
+ Enabled: false
788
931
  Style/Documentation:
789
932
  Enabled: false
790
933
  Style/DocumentationMethod:
@@ -806,6 +949,8 @@ Style/EmptyLambdaParameter:
806
949
  Enabled: true
807
950
  Layout/EmptyLineAfterGuardClause:
808
951
  Enabled: true
952
+ Layout/EmptyLineAfterMultilineCondition:
953
+ Enabled: true
809
954
  Style/EmptyLiteral:
810
955
  Enabled: true
811
956
  Style/EmptyMethod:
@@ -821,6 +966,10 @@ Style/EvenOdd:
821
966
  Enabled: true
822
967
  Style/ExpandPathArguments:
823
968
  Enabled: true
969
+ Style/ExplicitBlockArgument:
970
+ Enabled: true
971
+ Style/ExponentialNotation:
972
+ Enabled: true
824
973
  Style/FloatDivision:
825
974
  Enabled: true
826
975
  Style/For:
@@ -834,17 +983,29 @@ Style/FormatStringToken:
834
983
  EnforcedStyle: template
835
984
  Style/FrozenStringLiteralComment:
836
985
  Enabled: true
837
- EnforcedStyle: always
986
+ EnforcedStyle: always_true
987
+ Style/GlobalStdStream:
988
+ Enabled: true
838
989
  Style/GlobalVars:
839
990
  Enabled: true
840
991
  Style/GuardClause:
841
992
  Enabled: true
842
993
  MinBodyLength: 1
994
+ Style/HashAsLastArrayItem:
995
+ Enabled: true
996
+ Style/HashEachMethods:
997
+ Enabled: true
998
+ Style/HashLikeCase:
999
+ Enabled: true
843
1000
  Style/HashSyntax:
844
1001
  Enabled: true
845
1002
  EnforcedStyle: ruby19_no_mixed_keys
846
1003
  UseHashRocketsWithSymbolValues: false
847
1004
  PreferHashRocketsForNonAlnumEndingSymbols: false
1005
+ Style/HashTransformKeys:
1006
+ Enabled: true
1007
+ Style/HashTransformValues:
1008
+ Enabled: true
848
1009
  Style/IdenticalConditionalBranches:
849
1010
  Enabled: true
850
1011
  Style/IfInsideElse:
@@ -863,6 +1024,8 @@ Style/InlineComment:
863
1024
  Enabled: true
864
1025
  Style/InverseMethods:
865
1026
  Enabled: true
1027
+ Style/KeywordParametersOrder:
1028
+ Enabled: true
866
1029
  Style/Lambda:
867
1030
  Enabled: true
868
1031
  EnforcedStyle: line_count_dependent
@@ -896,8 +1059,6 @@ Style/MultilineBlockChain:
896
1059
  Enabled: true
897
1060
  Style/MultilineIfModifier:
898
1061
  Enabled: true
899
- Style/MethodMissingSuper:
900
- Enabled: true
901
1062
  Style/MissingRespondToMissing:
902
1063
  Enabled: true
903
1064
  Style/MultilineIfThen:
@@ -925,7 +1086,7 @@ Style/NestedModifier:
925
1086
  Enabled: true
926
1087
  Style/NestedParenthesizedCalls:
927
1088
  Enabled: true
928
- Whitelist:
1089
+ AllowedMethods:
929
1090
  - be
930
1091
  - be_a
931
1092
  - be_an
@@ -977,6 +1138,8 @@ Style/OptionHash:
977
1138
  - parameters
978
1139
  Style/OptionalArguments:
979
1140
  Enabled: true
1141
+ Style/OptionalBooleanParameter:
1142
+ Enabled: true
980
1143
  Style/OrAssignment:
981
1144
  Enabled: true
982
1145
  Style/ParallelAssignment:
@@ -1001,21 +1164,33 @@ Style/RaiseArgs:
1001
1164
  EnforcedStyle: exploded
1002
1165
  Style/RandomWithOffset:
1003
1166
  Enabled: true
1167
+ Style/RedundantAssignment:
1168
+ Enabled: true
1004
1169
  Style/RedundantBegin:
1005
1170
  Enabled: true
1006
1171
  Style/RedundantConditional:
1007
1172
  Enabled: true
1008
1173
  Style/RedundantException:
1009
1174
  Enabled: false
1175
+ Style/RedundantFetchBlock:
1176
+ Enabled: true
1177
+ Style/RedundantFileExtensionInRequire:
1178
+ Enabled: true
1010
1179
  Style/RedundantFreeze:
1011
1180
  Enabled: true
1012
1181
  Style/RedundantParentheses:
1013
1182
  Enabled: true
1183
+ Style/RedundantRegexpCharacterClass:
1184
+ Enabled: true
1185
+ Style/RedundantRegexpEscape:
1186
+ Enabled: true
1014
1187
  Style/RedundantReturn:
1015
1188
  Enabled: true
1016
1189
  AllowMultipleReturnValues: false
1017
1190
  Style/RedundantSelf:
1018
1191
  Enabled: true
1192
+ Style/RedundantSelfAssignment:
1193
+ Enabled: true
1019
1194
  Style/RedundantSortBy:
1020
1195
  Enabled: true
1021
1196
  Style/RegexpLiteral:
@@ -1033,7 +1208,7 @@ Style/ReturnNil:
1033
1208
  Style/SafeNavigation:
1034
1209
  Enabled: true
1035
1210
  ConvertCodeThatCanStartToReturnNil: true
1036
- Whitelist:
1211
+ AllowedMethods:
1037
1212
  - present?
1038
1213
  - blank?
1039
1214
  - presence
@@ -1051,11 +1226,17 @@ Style/Send:
1051
1226
  Style/SignalException:
1052
1227
  Enabled: true
1053
1228
  EnforcedStyle: only_raise
1229
+ Style/SingleArgumentDig:
1230
+ Enabled: true
1054
1231
  Style/SingleLineBlockParams:
1055
1232
  Enabled: true
1056
1233
  Style/SingleLineMethods:
1057
1234
  Enabled: true
1058
1235
  AllowIfMethodIsEmpty: true
1236
+ Style/SlicingWithRange:
1237
+ Enabled: true
1238
+ Style/SoleNestedConditional:
1239
+ Enabled: true
1059
1240
  Style/SpecialGlobalVars:
1060
1241
  Enabled: true
1061
1242
  EnforcedStyle: use_english_names
@@ -1064,6 +1245,8 @@ Style/StabbyLambdaParentheses:
1064
1245
  EnforcedStyle: require_parentheses
1065
1246
  Style/StderrPuts:
1066
1247
  Enabled: true
1248
+ Style/StringConcatenation:
1249
+ Enabled: true
1067
1250
  Style/StringHashKeys:
1068
1251
  Enabled: true
1069
1252
  Style/StringLiterals:
@@ -1103,6 +1286,8 @@ Style/TrailingCommaInArguments:
1103
1286
  Style/TrailingCommaInArrayLiteral:
1104
1287
  Enabled: true
1105
1288
  EnforcedStyleForMultiline: comma
1289
+ Style/TrailingCommaInBlockArgs:
1290
+ Enabled: false
1106
1291
  Style/TrailingCommaInHashLiteral:
1107
1292
  Enabled: true
1108
1293
  EnforcedStyleForMultiline: comma
@@ -1116,7 +1301,7 @@ Style/TrivialAccessors:
1116
1301
  AllowPredicates: true
1117
1302
  AllowDSLWriters: false
1118
1303
  IgnoreClassMethods: false
1119
- Whitelist:
1304
+ AllowedMethods:
1120
1305
  - to_ary
1121
1306
  - to_a
1122
1307
  - to_c
@@ -1136,13 +1321,13 @@ Style/TrivialAccessors:
1136
1321
  - to_sym
1137
1322
  Style/UnlessElse:
1138
1323
  Enabled: true
1139
- Style/UnneededCapitalW:
1324
+ Style/RedundantCapitalW:
1140
1325
  Enabled: true
1141
- Style/UnneededInterpolation:
1326
+ Style/RedundantInterpolation:
1142
1327
  Enabled: true
1143
- Style/UnneededPercentQ:
1328
+ Style/RedundantPercentQ:
1144
1329
  Enabled: true
1145
- Style/UnneededSort:
1330
+ Style/RedundantSort:
1146
1331
  Enabled: true
1147
1332
  Style/UnpackFirst:
1148
1333
  Enabled: true
@@ -1207,8 +1392,14 @@ RSpec/DescribedClass:
1207
1392
  EnforcedStyle: described_class
1208
1393
  RSpec/Dialect:
1209
1394
  Enabled: false
1395
+ RSpec/ContextMethod:
1396
+ Enabled: true
1210
1397
  RSpec/EmptyExampleGroup:
1211
1398
  Enabled: true
1399
+ RSpec/EmptyHook:
1400
+ Enabled: true
1401
+ RSpec/EmptyLineAfterExample:
1402
+ Enabled: true
1212
1403
  RSpec/EmptyLineAfterFinalLet:
1213
1404
  Enabled: true
1214
1405
  RSpec/EmptyLineAfterSubject:
@@ -1278,6 +1469,8 @@ RSpec/MultipleDescribes:
1278
1469
  Enabled: true
1279
1470
  RSpec/MultipleExpectations:
1280
1471
  Enabled: false
1472
+ RSpec/MultipleMemoizedHelpers:
1473
+ Enabled: true
1281
1474
  RSpec/MultipleSubjects:
1282
1475
  Enabled: true
1283
1476
  RSpec/NamedSubject:
@@ -1300,6 +1493,10 @@ RSpec/RepeatedDescription:
1300
1493
  Enabled: true
1301
1494
  RSpec/RepeatedExample:
1302
1495
  Enabled: true
1496
+ RSpec/RepeatedExampleGroupBody:
1497
+ Enabled: true
1498
+ RSpec/RepeatedExampleGroupDescription:
1499
+ Enabled: true
1303
1500
  RSpec/ReturnFromStub:
1304
1501
  Enabled: true
1305
1502
  EnforcedStyle: and_return
@@ -1315,6 +1512,10 @@ RSpec/SingleArgumentMessageChain:
1315
1512
  Enabled: true
1316
1513
  RSpec/SubjectStub:
1317
1514
  Enabled: true
1515
+ RSpec/VariableDefinition:
1516
+ Enabled: true
1517
+ RSpec/VariableName:
1518
+ Enabled: true
1318
1519
  RSpec/VerifiedDoubles:
1319
1520
  Enabled: true
1320
1521
  IgnoreSymbolicNames: false
@@ -1323,13 +1524,17 @@ RSpec/VoidExpect:
1323
1524
  RSpec/Yield:
1324
1525
  Enabled: true
1325
1526
 
1527
+ FactoryBot/AttributeDefinedStatically:
1528
+ Enabled: true
1326
1529
  FactoryBot/CreateList:
1327
1530
  Enabled: true
1328
1531
  EnforcedStyle: create_list
1329
- FactoryBot/AttributeDefinedStatically:
1330
- Enabled: true
1532
+ FactoryBot/FactoryClassName:
1533
+ Enabled: true
1331
1534
 
1332
1535
  Capybara/CurrentPathExpectation:
1333
1536
  Enabled: true
1334
1537
  Capybara/FeatureMethods:
1335
1538
  Enabled: false
1539
+ Capybara/VisibilityMatcher:
1540
+ Enabled: true
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spicerack-styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.6
4
+ version: 0.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Rettberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.74'
19
+ version: 0.92.0
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: '0.74'
26
+ version: 0.92.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.35.0
33
+ version: 1.43.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.35.0
40
+ version: 1.43.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.4.1
47
+ version: 1.8.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.1
54
+ version: 1.8.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.3.0
61
+ version: 2.8.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '='
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.3.0
68
+ version: 2.8.0
69
69
  description: Wanna write code the Freshly way? Inherit this gem in your rubocop.yml
70
70
  and keep your code fresh
71
71
  email:
@@ -90,7 +90,7 @@ metadata:
90
90
  homepage_uri: https://github.com/Freshly/spicerack/tree/master/spicerack-styleguide
91
91
  source_code_uri: https://github.com/Freshly/spicerack/tree/master/spicerack-styleguide
92
92
  changelog_uri: https://github.com/Freshly/spicerack/blob/master/spicerack-styleguide/CHANGELOG.md
93
- documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.23.6
93
+ documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.25.1
94
94
  post_install_message:
95
95
  rdoc_options: []
96
96
  require_paths:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.0.3
109
+ rubygems_version: 3.1.4
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Rubocop Styleguide for Rails and RSpec.