spicerack-styleguide 0.23.7 → 0.25.2

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: b2d7f156233b8a1641a809fec3753d6df2235192ff1e807d2da0dd2e1dcbd927
4
- data.tar.gz: 32aa143ce23e2f878288041675421e1f746112d77d20f99cb9944bc524d5ac5e
3
+ metadata.gz: e6e94438618bd3e19cc4aa0f63d91f52bd11de223ab4a42f179bf4d3b696eb45
4
+ data.tar.gz: 8cb2cd7e970b69432827ce9e154e297c6d42ca83e42fb8ac6fd0b7375f9915ac
5
5
  SHA512:
6
- metadata.gz: 4899210723a7e080d5aa940afaa01fbe4b9beff4d557480a6148d14dc843d658adeb5afee6ac145de96a20c4d646af0524236371b1a93537bd16170ed1ce0c20
7
- data.tar.gz: 556dd016254d7156fed15971b76c7c4616464270f93a86291e1656b8e1760461c6d5f8cbbcefc4bddd049e93281760d2eaac099e9fa2ae212efb733821eb69e5
6
+ metadata.gz: cf12a39fdd5649758a4b730d84e7de11f251f705cff2871a33e1050133e5435ad4c78dd7fc9b78322b056f01b47133a4ac43b1806b8b4bf37fc4bb31ab1920bf
7
+ data.tar.gz: a1491d2f7099a4bbb549c94b5a5d5e8e5fec678019d2125dcf5517c48f2c615b6ff7cb8242d8238d77b188f13087819768636270e74516e92e5aee9438f1c353
@@ -3,6 +3,6 @@
3
3
  module Spicerack
4
4
  module Styleguide
5
5
  # This constant is managed by spicerack
6
- VERSION = "0.23.7"
6
+ VERSION = "0.25.2"
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: false
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,30 @@ 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
+ EnforcedStyle: no_braces
997
+ Style/HashEachMethods:
998
+ Enabled: true
999
+ Style/HashLikeCase:
1000
+ Enabled: true
843
1001
  Style/HashSyntax:
844
1002
  Enabled: true
845
1003
  EnforcedStyle: ruby19_no_mixed_keys
846
1004
  UseHashRocketsWithSymbolValues: false
847
1005
  PreferHashRocketsForNonAlnumEndingSymbols: false
1006
+ Style/HashTransformKeys:
1007
+ Enabled: true
1008
+ Style/HashTransformValues:
1009
+ Enabled: true
848
1010
  Style/IdenticalConditionalBranches:
849
1011
  Enabled: true
850
1012
  Style/IfInsideElse:
@@ -863,6 +1025,8 @@ Style/InlineComment:
863
1025
  Enabled: true
864
1026
  Style/InverseMethods:
865
1027
  Enabled: true
1028
+ Style/KeywordParametersOrder:
1029
+ Enabled: true
866
1030
  Style/Lambda:
867
1031
  Enabled: true
868
1032
  EnforcedStyle: line_count_dependent
@@ -896,8 +1060,6 @@ Style/MultilineBlockChain:
896
1060
  Enabled: true
897
1061
  Style/MultilineIfModifier:
898
1062
  Enabled: true
899
- Style/MethodMissingSuper:
900
- Enabled: true
901
1063
  Style/MissingRespondToMissing:
902
1064
  Enabled: true
903
1065
  Style/MultilineIfThen:
@@ -925,7 +1087,7 @@ Style/NestedModifier:
925
1087
  Enabled: true
926
1088
  Style/NestedParenthesizedCalls:
927
1089
  Enabled: true
928
- Whitelist:
1090
+ AllowedMethods:
929
1091
  - be
930
1092
  - be_a
931
1093
  - be_an
@@ -977,6 +1139,8 @@ Style/OptionHash:
977
1139
  - parameters
978
1140
  Style/OptionalArguments:
979
1141
  Enabled: true
1142
+ Style/OptionalBooleanParameter:
1143
+ Enabled: true
980
1144
  Style/OrAssignment:
981
1145
  Enabled: true
982
1146
  Style/ParallelAssignment:
@@ -1001,21 +1165,33 @@ Style/RaiseArgs:
1001
1165
  EnforcedStyle: exploded
1002
1166
  Style/RandomWithOffset:
1003
1167
  Enabled: true
1168
+ Style/RedundantAssignment:
1169
+ Enabled: true
1004
1170
  Style/RedundantBegin:
1005
1171
  Enabled: true
1006
1172
  Style/RedundantConditional:
1007
1173
  Enabled: true
1008
1174
  Style/RedundantException:
1009
1175
  Enabled: false
1176
+ Style/RedundantFetchBlock:
1177
+ Enabled: true
1178
+ Style/RedundantFileExtensionInRequire:
1179
+ Enabled: true
1010
1180
  Style/RedundantFreeze:
1011
1181
  Enabled: true
1012
1182
  Style/RedundantParentheses:
1013
1183
  Enabled: true
1184
+ Style/RedundantRegexpCharacterClass:
1185
+ Enabled: true
1186
+ Style/RedundantRegexpEscape:
1187
+ Enabled: true
1014
1188
  Style/RedundantReturn:
1015
1189
  Enabled: true
1016
1190
  AllowMultipleReturnValues: false
1017
1191
  Style/RedundantSelf:
1018
1192
  Enabled: true
1193
+ Style/RedundantSelfAssignment:
1194
+ Enabled: true
1019
1195
  Style/RedundantSortBy:
1020
1196
  Enabled: true
1021
1197
  Style/RegexpLiteral:
@@ -1033,7 +1209,7 @@ Style/ReturnNil:
1033
1209
  Style/SafeNavigation:
1034
1210
  Enabled: true
1035
1211
  ConvertCodeThatCanStartToReturnNil: true
1036
- Whitelist:
1212
+ AllowedMethods:
1037
1213
  - present?
1038
1214
  - blank?
1039
1215
  - presence
@@ -1051,11 +1227,17 @@ Style/Send:
1051
1227
  Style/SignalException:
1052
1228
  Enabled: true
1053
1229
  EnforcedStyle: only_raise
1230
+ Style/SingleArgumentDig:
1231
+ Enabled: true
1054
1232
  Style/SingleLineBlockParams:
1055
1233
  Enabled: true
1056
1234
  Style/SingleLineMethods:
1057
1235
  Enabled: true
1058
1236
  AllowIfMethodIsEmpty: true
1237
+ Style/SlicingWithRange:
1238
+ Enabled: true
1239
+ Style/SoleNestedConditional:
1240
+ Enabled: true
1059
1241
  Style/SpecialGlobalVars:
1060
1242
  Enabled: true
1061
1243
  EnforcedStyle: use_english_names
@@ -1064,6 +1246,8 @@ Style/StabbyLambdaParentheses:
1064
1246
  EnforcedStyle: require_parentheses
1065
1247
  Style/StderrPuts:
1066
1248
  Enabled: true
1249
+ Style/StringConcatenation:
1250
+ Enabled: true
1067
1251
  Style/StringHashKeys:
1068
1252
  Enabled: true
1069
1253
  Style/StringLiterals:
@@ -1103,6 +1287,8 @@ Style/TrailingCommaInArguments:
1103
1287
  Style/TrailingCommaInArrayLiteral:
1104
1288
  Enabled: true
1105
1289
  EnforcedStyleForMultiline: comma
1290
+ Style/TrailingCommaInBlockArgs:
1291
+ Enabled: false
1106
1292
  Style/TrailingCommaInHashLiteral:
1107
1293
  Enabled: true
1108
1294
  EnforcedStyleForMultiline: comma
@@ -1116,7 +1302,7 @@ Style/TrivialAccessors:
1116
1302
  AllowPredicates: true
1117
1303
  AllowDSLWriters: false
1118
1304
  IgnoreClassMethods: false
1119
- Whitelist:
1305
+ AllowedMethods:
1120
1306
  - to_ary
1121
1307
  - to_a
1122
1308
  - to_c
@@ -1136,13 +1322,13 @@ Style/TrivialAccessors:
1136
1322
  - to_sym
1137
1323
  Style/UnlessElse:
1138
1324
  Enabled: true
1139
- Style/UnneededCapitalW:
1325
+ Style/RedundantCapitalW:
1140
1326
  Enabled: true
1141
- Style/UnneededInterpolation:
1327
+ Style/RedundantInterpolation:
1142
1328
  Enabled: true
1143
- Style/UnneededPercentQ:
1329
+ Style/RedundantPercentQ:
1144
1330
  Enabled: true
1145
- Style/UnneededSort:
1331
+ Style/RedundantSort:
1146
1332
  Enabled: true
1147
1333
  Style/UnpackFirst:
1148
1334
  Enabled: true
@@ -1207,8 +1393,14 @@ RSpec/DescribedClass:
1207
1393
  EnforcedStyle: described_class
1208
1394
  RSpec/Dialect:
1209
1395
  Enabled: false
1396
+ RSpec/ContextMethod:
1397
+ Enabled: true
1210
1398
  RSpec/EmptyExampleGroup:
1211
1399
  Enabled: true
1400
+ RSpec/EmptyHook:
1401
+ Enabled: true
1402
+ RSpec/EmptyLineAfterExample:
1403
+ Enabled: true
1212
1404
  RSpec/EmptyLineAfterFinalLet:
1213
1405
  Enabled: true
1214
1406
  RSpec/EmptyLineAfterSubject:
@@ -1278,6 +1470,8 @@ RSpec/MultipleDescribes:
1278
1470
  Enabled: true
1279
1471
  RSpec/MultipleExpectations:
1280
1472
  Enabled: false
1473
+ RSpec/MultipleMemoizedHelpers:
1474
+ Enabled: false
1281
1475
  RSpec/MultipleSubjects:
1282
1476
  Enabled: true
1283
1477
  RSpec/NamedSubject:
@@ -1300,6 +1494,10 @@ RSpec/RepeatedDescription:
1300
1494
  Enabled: true
1301
1495
  RSpec/RepeatedExample:
1302
1496
  Enabled: true
1497
+ RSpec/RepeatedExampleGroupBody:
1498
+ Enabled: true
1499
+ RSpec/RepeatedExampleGroupDescription:
1500
+ Enabled: true
1303
1501
  RSpec/ReturnFromStub:
1304
1502
  Enabled: true
1305
1503
  EnforcedStyle: and_return
@@ -1315,6 +1513,10 @@ RSpec/SingleArgumentMessageChain:
1315
1513
  Enabled: true
1316
1514
  RSpec/SubjectStub:
1317
1515
  Enabled: true
1516
+ RSpec/VariableDefinition:
1517
+ Enabled: true
1518
+ RSpec/VariableName:
1519
+ Enabled: true
1318
1520
  RSpec/VerifiedDoubles:
1319
1521
  Enabled: true
1320
1522
  IgnoreSymbolicNames: false
@@ -1323,13 +1525,17 @@ RSpec/VoidExpect:
1323
1525
  RSpec/Yield:
1324
1526
  Enabled: true
1325
1527
 
1528
+ FactoryBot/AttributeDefinedStatically:
1529
+ Enabled: true
1326
1530
  FactoryBot/CreateList:
1327
1531
  Enabled: true
1328
1532
  EnforcedStyle: create_list
1329
- FactoryBot/AttributeDefinedStatically:
1330
- Enabled: true
1533
+ FactoryBot/FactoryClassName:
1534
+ Enabled: true
1331
1535
 
1332
1536
  Capybara/CurrentPathExpectation:
1333
1537
  Enabled: true
1334
1538
  Capybara/FeatureMethods:
1335
1539
  Enabled: false
1540
+ Capybara/VisibilityMatcher:
1541
+ 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.7
4
+ version: 0.25.2
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-16 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.7
93
+ documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.25.2
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.1.2
109
+ rubygems_version: 3.1.4
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Rubocop Styleguide for Rails and RSpec.