spicerack-styleguide 0.7.2 → 0.7.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9356a8cdbe27835042926ed784501356e009f0437df1626bc7a5d97368cd25a
4
- data.tar.gz: 158ce9b108cccfe56ff2d3271744d3e62ef379ab7e6b123bc4e56d2797be5e0c
3
+ metadata.gz: 34560c8bdffbefb68fde970b7b212ce4337c53a3fe8aadfe1bf8ba1057533b72
4
+ data.tar.gz: ad57bcc0c17c3973584d09d25ea4e30ef04a5c7d8f214b9c3508d20a3bf79532
5
5
  SHA512:
6
- metadata.gz: 8fdd00b84551f878bbc3713d737895caf581df8d52c99a0607863ee1076084a01b2d5c243e15df6f3e12deb140af467843a32908d701166e36df0bc0242ddf0a
7
- data.tar.gz: 1b07d81dd8d2cfc89d4d3b731dbc1a0ec00621f7f7a6824c4e2385de2ecfb7d7ebe1b8e50bf43014e69a89e3f5dcbf4ff2e6afb2b62d7443bd6436492066b222
6
+ metadata.gz: 05d3f3788589c76cb114bfed1979d1a26a8bca64041c4424aa5aabf4a98b7048f67c089df8647aa7870c5d74b4bc5564b9dd4696440e100c0c41aff5d10bb4e0
7
+ data.tar.gz: 1800298d631c67de658d7bba2f2e904e36538de2a052ebe40a6667a72de2501167bbe819ba1222508b5edab21f0e2d8075f022663601d31596b2f8edbba88b46
@@ -3,6 +3,6 @@
3
3
  module Spicerack
4
4
  module Styleguide
5
5
  # This constant is managed by spicerack
6
- VERSION = "0.7.2"
6
+ VERSION = "0.7.3"
7
7
  end
8
8
  end
data/rubocop.yml CHANGED
@@ -1,7 +1,9 @@
1
- require: rubocop-rspec
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-performance
2
4
 
3
5
  AllCops:
4
- TargetRubyVersion: 2.5.3
6
+ TargetRubyVersion: 2.6
5
7
  Exclude:
6
8
  - bin/**/*
7
9
  - Gemfile*
@@ -106,17 +108,22 @@ Layout/FirstMethodArgumentLineBreak:
106
108
  Enabled: true
107
109
  Layout/FirstMethodParameterLineBreak:
108
110
  Enabled: true
109
- Layout/FirstParameterIndentation:
111
+ Layout/HeredocArgumentClosingParenthesis:
110
112
  Enabled: true
111
- EnforcedStyle: consistent
112
- Layout/IndentArray:
113
+ Lint/HeredocMethodCallPosition:
113
114
  Enabled: true
114
- EnforcedStyle: consistent
115
115
  Layout/IndentAssignment:
116
116
  Enabled: false
117
- Layout/IndentHash:
117
+ Layout/IndentFirstArgument:
118
+ Enabled: true
119
+ Layout/IndentFirstArrayElement:
118
120
  Enabled: true
119
121
  EnforcedStyle: consistent
122
+ Layout/IndentFirstHashElement:
123
+ Enabled: true
124
+ EnforcedStyle: consistent
125
+ Layout/IndentFirstParameter:
126
+ Enabled: true
120
127
  Layout/IndentHeredoc:
121
128
  Enabled: true
122
129
  EnforcedStyle: auto_detection
@@ -265,6 +272,8 @@ Lint/EndInMethod:
265
272
  Enabled: true
266
273
  Lint/EnsureReturn:
267
274
  Enabled: true
275
+ Lint/FlipFlop:
276
+ Enabled: true
268
277
  Lint/FloatOutOfRange:
269
278
  Enabled: true
270
279
  Lint/FormatParameterMismatch:
@@ -326,6 +335,8 @@ Lint/ReturnInVoidContext:
326
335
  Enabled: true
327
336
  Lint/SafeNavigationChain:
328
337
  Enabled: true
338
+ Lint/SafeNavigationWithEmpty:
339
+ Enabled: true
329
340
  Lint/ScriptPermission:
330
341
  Enabled: true
331
342
  Lint/ShadowedArgument:
@@ -336,6 +347,8 @@ Lint/ShadowingOuterLocalVariable:
336
347
  Enabled: true
337
348
  Lint/StringConversionInInterpolation:
338
349
  Enabled: true
350
+ Lint/ToJSON:
351
+ Enabled: true
339
352
  Lint/UnderscorePrefixedVariableName:
340
353
  Enabled: true
341
354
  Lint/UnifiedInteger:
@@ -381,6 +394,7 @@ Metrics/BlockLength:
381
394
  Enabled: true
382
395
  Max: 24
383
396
  Exclude:
397
+ - "**/concerns/*"
384
398
  - config/environments/*
385
399
  - spec/**/*
386
400
  Metrics/BlockNesting:
@@ -448,6 +462,9 @@ Naming/PredicateName:
448
462
  Exclude:
449
463
  - app/serializers/*_serializer.rb
450
464
  - spec/**/*
465
+ Naming/RescuedExceptionsVariableName:
466
+ Enabled: true
467
+ PreferredName: exception
451
468
  Naming/UncommunicativeBlockParamName:
452
469
  Enabled: true
453
470
  MinNameLength: 1
@@ -493,8 +510,10 @@ Performance/FixedSize:
493
510
  Enabled: true
494
511
  Performance/FlatMap:
495
512
  Enabled: true
496
- Performance/LstripRstrip:
513
+ Performance/OpenStruct:
497
514
  Enabled: true
515
+ Exclude:
516
+ - spec/**/*
498
517
  Performance/RangeInclude:
499
518
  Enabled: true
500
519
  Performance/RedundantBlockCall:
@@ -503,14 +522,10 @@ Performance/RedundantMatch:
503
522
  Enabled: true
504
523
  Performance/RedundantMerge:
505
524
  Enabled: true
506
- Performance/RedundantSortBy:
507
- Enabled: true
508
525
  Performance/RegexpMatch:
509
526
  Enabled: true
510
527
  Performance/ReverseEach:
511
528
  Enabled: true
512
- Performance/Sample:
513
- Enabled: true
514
529
  Performance/Size:
515
530
  Enabled: true
516
531
  Performance/StartWith:
@@ -523,10 +538,11 @@ Performance/UnfreezeString:
523
538
  Enabled: true
524
539
  Performance/UriDefaultParser:
525
540
  Enabled: true
526
-
527
541
  Rails/ActionFilter:
528
542
  Enabled: true
529
543
  EnforcedStyle: action
544
+ Rails/ActiveRecordOverride:
545
+ Enabled: true
530
546
  Rails/ActiveRecordAliases:
531
547
  Enabled: true
532
548
  Rails/ActiveSupportAliases:
@@ -535,6 +551,8 @@ Rails/ApplicationJob:
535
551
  Enabled: true
536
552
  Rails/ApplicationRecord:
537
553
  Enabled: true
554
+ Rails/BelongsTo:
555
+ Enabled: true
538
556
  Rails/Blank:
539
557
  Enabled: true
540
558
  Rails/CreateTableWithTimestamps:
@@ -577,6 +595,8 @@ Rails/HttpPositionalArguments:
577
595
  Rails/HttpStatus:
578
596
  Enabled: true
579
597
  EnforcedStyle: symbolic
598
+ Rails/IgnoredSkipActionFilterOption:
599
+ Enabled: true
580
600
  Rails/InverseOf:
581
601
  Enabled: true
582
602
  Include:
@@ -585,6 +605,8 @@ Rails/LexicallyScopedActionFilter:
585
605
  Enabled: true
586
606
  Include:
587
607
  - app/controllers/**/*.rb
608
+ Rails/LinkToBlank:
609
+ Enabled: true
588
610
  Rails/NotNullColumn:
589
611
  Enabled: true
590
612
  Include:
@@ -611,8 +633,12 @@ Rails/ReadWriteAttribute:
611
633
  Enabled: true
612
634
  Include:
613
635
  - app/models/**/*.rb
636
+ Rails/RedundantAllowNil:
637
+ Enabled: true
614
638
  Rails/RedundantReceiverInWithOptions:
615
639
  Enabled: true
640
+ Rails/ReflectionClassName:
641
+ Enabled: true
616
642
  Rails/RelativeDateConstant:
617
643
  Enabled: true
618
644
  Rails/RequestReferer:
@@ -736,6 +762,8 @@ Style/ConditionalAssignment:
736
762
  EnforcedStyle: assign_inside_condition
737
763
  SingleLineConditionsOnly: false
738
764
  IncludeTernaryExpressions: false
765
+ Style/ConstantVisibility:
766
+ Enabled: false
739
767
  Style/Copyright:
740
768
  Enabled: false
741
769
  Style/DateTime:
@@ -744,6 +772,8 @@ Style/DefWithParentheses:
744
772
  Enabled: true
745
773
  Style/Dir:
746
774
  Enabled: true
775
+ Style/DisjunctiveAssignmentInConstructor:
776
+ Enabled: true
747
777
  Style/Documentation:
748
778
  Enabled: false
749
779
  Style/DocumentationMethod:
@@ -780,8 +810,6 @@ Style/EvenOdd:
780
810
  Enabled: true
781
811
  Style/ExpandPathArguments:
782
812
  Enabled: true
783
- Style/FlipFlop:
784
- Enabled: true
785
813
  Style/For:
786
814
  Enabled: true
787
815
  EnforcedStyle: each
@@ -970,6 +998,8 @@ Style/RedundantReturn:
970
998
  AllowMultipleReturnValues: false
971
999
  Style/RedundantSelf:
972
1000
  Enabled: true
1001
+ Style/RedundantSortBy:
1002
+ Enabled: true
973
1003
  Style/RegexpLiteral:
974
1004
  Enabled: true
975
1005
  EnforcedStyle: percent_r
@@ -991,6 +1021,8 @@ Style/SafeNavigation:
991
1021
  - presence
992
1022
  - try
993
1023
  - try!
1024
+ Style/Sample:
1025
+ Enabled: true
994
1026
  Style/SelfAssignment:
995
1027
  Enabled: true
996
1028
  Style/Semicolon:
@@ -1025,6 +1057,8 @@ Style/StringLiteralsInInterpolation:
1025
1057
  EnforcedStyle: double_quotes
1026
1058
  Style/StringMethods:
1027
1059
  Enabled: true
1060
+ Style/Strip:
1061
+ Enabled: true
1028
1062
  Style/StructInheritance:
1029
1063
  Enabled: true
1030
1064
  Style/SymbolArray:
@@ -1106,7 +1140,7 @@ Style/WordArray:
1106
1140
  MinSize: 0
1107
1141
  Style/YodaCondition:
1108
1142
  Enabled: true
1109
- EnforcedStyle: all_comparison_operators
1143
+ EnforcedStyle: forbid_for_all_comparison_operators
1110
1144
  Style/ZeroLengthPredicate:
1111
1145
  Enabled: true
1112
1146
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spicerack-styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Rettberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-01 00:00:00.000000000 Z
11
+ date: 2019-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.59.2
19
+ version: 0.68.1
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.59.2
26
+ version: 0.68.1
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.29.1
33
+ version: 1.32.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.29.1
40
+ version: 1.32.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-performance
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 1.1.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 1.1.0
41
55
  description: Wanna write code the Freshly way? Inherit this gem in your rubocop.yml
42
56
  and keep your code fresh
43
57
  email: