spicerack-styleguide 0.28.0 → 0.29.0

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: 1af4f057357ba1fee729ab369d3e60df89537e131849273f6701bf83a217ed2f
4
- data.tar.gz: 8ca9843dd292b75ed3d2c8ad483b5dba69eb90afb4af22b3f10c5fa400fe9470
3
+ metadata.gz: e5a822c6e522c67af5a390ba33997bdad1efcea2542ca7f2189c195350795c83
4
+ data.tar.gz: c460b7421e921a090fe47ee54cf80c0f5b0198fca9a9eff8806c0148e6dcc5b2
5
5
  SHA512:
6
- metadata.gz: f9e7838b3018e345fc4e1d4c7a704cb7d997d39f3502bcb5cce41d70828f4bbb43691a1b843afdea2d3fc28dc8c32728df348b8a32dd0ef74543e263e86c57b3
7
- data.tar.gz: 1efb06ddd40d23ea58caa18e303ba08e4ce576283c9aeccea783f2b7eefd74f05097a55d2ee9b060bf3dbbd4e286c37b717895da9f3b013481d58a5795be7acf
6
+ metadata.gz: 4483e8d87aaf64de0fb51220e7884c4d8d9a422d3ca8e616059b7d86e9f2681e7bf87811a678e664a1903b779cb31e72cccdc32b17c81747f622f451329237a4
7
+ data.tar.gz: 7bb5f1fa75b20f86739b84554e2dbb15f43585272f5e30dcfc359df2fe36334554a7562dab856387208e0db0de23749788554c9b1ef9f25d2829c85858c4787d
data/README.md CHANGED
@@ -64,7 +64,7 @@ This... is a yml. You don't develop it. Go home, boilerplate gem README text, yo
64
64
 
65
65
  ## Contributing
66
66
 
67
- Bug reports and pull requests are welcome on GitHub at https://github.com/Freshly/spicerack.
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/RubyAfterAll/spicerack.
68
68
 
69
69
  ## License
70
70
 
@@ -3,6 +3,6 @@
3
3
  module Spicerack
4
4
  module Styleguide
5
5
  # This constant is managed by spicerack
6
- VERSION = "0.28.0"
6
+ VERSION = "0.29.0"
7
7
  end
8
8
  end
data/rubocop.yml CHANGED
@@ -5,6 +5,7 @@ require:
5
5
 
6
6
  AllCops:
7
7
  TargetRubyVersion: 2.7
8
+ NewCops: enable
8
9
  Exclude:
9
10
  - "**/bin/**/*"
10
11
  - Rakefile
@@ -55,8 +56,24 @@ Layout/DefEndAlignment:
55
56
  Layout/DotPosition:
56
57
  Enabled: true
57
58
  EnforcedStyle: trailing
59
+ Lint/AmbiguousAssignment:
60
+ Enabled: true
61
+ Lint/DuplicateBranch:
62
+ Enabled: true
63
+ Lint/DuplicateRegexpCharacterClassElement:
64
+ Enabled: true
58
65
  Layout/ElseAlignment:
59
66
  Enabled: true
67
+ Lint/EmptyBlock:
68
+ Enabled: true
69
+ Lint/EmptyClass:
70
+ Enabled: true
71
+ Lint/NoReturnInBeginEndBlocks:
72
+ Enabled: true
73
+ Lint/ToEnumArguments:
74
+ Enabled: true
75
+ Lint/UnmodifiedReduceAccumulator:
76
+ Enabled: true
60
77
  Layout/EmptyComment:
61
78
  Enabled: true
62
79
  AllowBorderComment: true
@@ -200,6 +217,8 @@ Layout/SpaceAroundOperators:
200
217
  Layout/SpaceBeforeBlockBraces:
201
218
  Enabled: true
202
219
  EnforcedStyle: space
220
+ Layout/SpaceBeforeBrackets:
221
+ Enabled: true
203
222
  Layout/SpaceBeforeComma:
204
223
  Enabled: true
205
224
  Layout/SpaceBeforeComment:
@@ -402,6 +421,8 @@ Lint/ToJSON:
402
421
  Enabled: true
403
422
  Lint/UnderscorePrefixedVariableName:
404
423
  Enabled: true
424
+ Lint/UnexpectedBlockArity:
425
+ Enabled: true
405
426
  Lint/UnifiedInteger:
406
427
  Enabled: true
407
428
  Lint/RaiseException:
@@ -572,6 +593,8 @@ Performance/CompareWithBlock:
572
593
  Enabled: true
573
594
  Performance/ConstantRegexp:
574
595
  Enabled: true
596
+ Performance/ConcurrentMonotonicTime:
597
+ Enabled: true
575
598
  Performance/Count:
576
599
  Enabled: true
577
600
  Performance/Detect:
@@ -586,6 +609,8 @@ Performance/FlatMap:
586
609
  Enabled: true
587
610
  Performance/IoReadlines:
588
611
  Enabled: true
612
+ Performance/MapCompact:
613
+ Enabled: true
589
614
  Performance/MethodObjectAsBlock:
590
615
  Enabled: true
591
616
  Performance/OpenStruct:
@@ -614,6 +639,8 @@ Performance/ReverseEach:
614
639
  Enabled: true
615
640
  Performance/ReverseFirst:
616
641
  Enabled: true
642
+ Performance/SelectMap:
643
+ Enabled: true
617
644
  Performance/Size:
618
645
  Enabled: true
619
646
  Performance/SortReverse:
@@ -622,6 +649,8 @@ Performance/Squeeze:
622
649
  Enabled: true
623
650
  Performance/StartWith:
624
651
  Enabled: true
652
+ Performance/StringIdentifierArgument:
653
+ Enabled: true
625
654
  Performance/StringInclude:
626
655
  Enabled: true
627
656
  Performance/StringReplacement:
@@ -646,6 +675,8 @@ Rails/ActiveRecordOverride:
646
675
  Enabled: true
647
676
  Rails/ActiveSupportAliases:
648
677
  Enabled: true
678
+ Rails/AddColumnIndex:
679
+ Enabled: true
649
680
  Rails/ApplicationController:
650
681
  Enabled: true
651
682
  Rails/ApplicationMailer:
@@ -685,8 +716,14 @@ Rails/EnumUniqueness:
685
716
  Enabled: true
686
717
  Rails/EnvironmentComparison:
687
718
  Enabled: true
719
+ Rails/EnvironmentVariableAccess:
720
+ Enabled: true
721
+ AllowReads: true
722
+ AllowWrites: false
688
723
  Rails/Exit:
689
724
  Enabled: true
725
+ Rails/ExpandedDateRange:
726
+ Enabled: true
690
727
  Rails/FilePath:
691
728
  Enabled: true
692
729
  EnforcedStyle: arguments
@@ -715,6 +752,8 @@ Rails/HttpPositionalArguments:
715
752
  Rails/HttpStatus:
716
753
  Enabled: true
717
754
  EnforcedStyle: symbolic
755
+ Rails/I18nLocaleAssignment:
756
+ Enabled: true
718
757
  Rails/IndexBy:
719
758
  Enabled: true
720
759
  Rails/IndexWith:
@@ -800,6 +839,12 @@ Rails/ReversibleMigration:
800
839
  Enabled: true
801
840
  Include:
802
841
  - db/migrate/*.rb
842
+ Rails/RequireDependency:
843
+ Enabled: false # Theoretically not all projects could use zeitwerk
844
+ Rails/ReversibleMigrationMethodDefinition:
845
+ Enabled: true
846
+ Include:
847
+ - db/migrate/*.rb
803
848
  Rails/SafeNavigation:
804
849
  Enabled: true
805
850
  Rails/SafeNavigationWithBlank:
@@ -831,6 +876,8 @@ Rails/SquishedSQLHeredocs:
831
876
  Rails/TimeZone:
832
877
  Enabled: true
833
878
  EnforcedStyle: flexible
879
+ Rails/TimeZoneAssignment:
880
+ Enabled: true
834
881
  Rails/UniqBeforePluck:
835
882
  Enabled: true
836
883
  EnforcedStyle: conservative
@@ -842,6 +889,10 @@ Rails/UnknownEnv:
842
889
  - development
843
890
  - test
844
891
  - production
892
+ Rails/UnusedIgnoredColumns:
893
+ Enabled: true
894
+ Rails/EagerEvaluationLogMessage:
895
+ Enabled: true
845
896
  Rails/WhereExists:
846
897
  Enabled: true
847
898
  Rails/WhereEquals:
@@ -872,6 +923,8 @@ Style/Alias:
872
923
  Style/AndOr:
873
924
  Enabled: true
874
925
  EnforcedStyle: conditionals
926
+ Style/ArgumentsForwarding:
927
+ Enabled: true
875
928
  Style/ArrayCoercion:
876
929
  Enabled: true
877
930
  Style/ArrayJoin:
@@ -915,6 +968,8 @@ Style/ClassMethodsDefinitions:
915
968
  EnforcedStyle: self_class
916
969
  Style/ClassVars:
917
970
  Enabled: true
971
+ Style/CollectionCompact:
972
+ Enabled: true
918
973
  Style/CollectionMethods:
919
974
  Enabled: false
920
975
  Style/ColonMethodCall:
@@ -954,6 +1009,8 @@ Style/DisableCopsWithinSourceCodeDirective:
954
1009
  Enabled: false
955
1010
  Style/Documentation:
956
1011
  Enabled: false
1012
+ Style/DocumentDynamicEvalDefinition:
1013
+ Enabled: true
957
1014
  Style/DocumentationMethod:
958
1015
  Enabled: false
959
1016
  Style/DoubleNegation:
@@ -1020,6 +1077,8 @@ Style/HashAsLastArrayItem:
1020
1077
  EnforcedStyle: no_braces
1021
1078
  Style/HashEachMethods:
1022
1079
  Enabled: true
1080
+ Style/HashExcept:
1081
+ Enabled: false # TODO: enable once ruby 3.0 is supported
1023
1082
  Style/HashLikeCase:
1024
1083
  Enabled: true
1025
1084
  Style/HashSyntax:
@@ -1102,6 +1161,8 @@ Style/MutableConstant:
1102
1161
  Style/NegatedIf:
1103
1162
  Enabled: true
1104
1163
  EnforcedStyle: both
1164
+ Style/NegatedIfElseCondition:
1165
+ Enabled: true
1105
1166
  Style/NegatedUnless:
1106
1167
  Enabled: true
1107
1168
  EnforcedStyle: both
@@ -1136,6 +1197,8 @@ Style/Next:
1136
1197
  EnforcedStyle: skip_modifier_ifs
1137
1198
  Style/NilComparison:
1138
1199
  Enabled: true
1200
+ Style/NilLambda:
1201
+ Enabled: true
1139
1202
  Style/NonNilCheck:
1140
1203
  Enabled: true
1141
1204
  Style/Not:
@@ -1189,6 +1252,8 @@ Style/RaiseArgs:
1189
1252
  EnforcedStyle: exploded
1190
1253
  Style/RandomWithOffset:
1191
1254
  Enabled: true
1255
+ Style/RedundantArgument:
1256
+ Enabled: true
1192
1257
  Style/RedundantAssignment:
1193
1258
  Enabled: true
1194
1259
  Style/RedundantBegin:
@@ -1268,6 +1333,8 @@ Style/SpecialGlobalVars:
1268
1333
  Style/StabbyLambdaParentheses:
1269
1334
  Enabled: true
1270
1335
  EnforcedStyle: require_parentheses
1336
+ Style/StaticClass:
1337
+ Enabled: false
1271
1338
  Style/StderrPuts:
1272
1339
  Enabled: true
1273
1340
  Style/StringConcatenation:
@@ -1354,6 +1421,8 @@ Style/RedundantPercentQ:
1354
1421
  Enabled: true
1355
1422
  Style/RedundantSort:
1356
1423
  Enabled: true
1424
+ Style/SwapValues:
1425
+ Enabled: true
1357
1426
  Style/UnpackFirst:
1358
1427
  Enabled: true
1359
1428
  Style/VariableInterpolation:
@@ -1471,6 +1540,8 @@ RSpec/HookArgument:
1471
1540
  EnforcedStyle: implicit
1472
1541
  RSpec/HooksBeforeExamples:
1473
1542
  Enabled: true
1543
+ RSpec/IdenticalEqualityAssertion:
1544
+ Enabled: true
1474
1545
  RSpec/ImplicitBlockExpectation:
1475
1546
  Enabled: true
1476
1547
  RSpec/ImplicitExpect:
@@ -1525,6 +1596,8 @@ RSpec/PredicateMatcher:
1525
1596
  Enabled: true
1526
1597
  Strict: false
1527
1598
  EnforcedStyle: inflected
1599
+ RSpec/Rails/AvoidSetupHook:
1600
+ Enabled: true
1528
1601
  RSpec/RepeatedDescription:
1529
1602
  Enabled: true
1530
1603
  RSpec/RepeatedExample:
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.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Rettberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-06 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,56 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0
19
+ version: '1.7'
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: 1.0.0
26
+ version: '1.7'
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: 2.0.1
33
+ version: '2.4'
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: 2.0.1
40
+ version: '2.4'
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.10.2
47
+ version: '1.13'
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.10.2
54
+ version: '1.13'
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.9.1
61
+ version: '2.11'
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.9.1
68
+ version: '2.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.6'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.6'
69
83
  description: Wanna write code the Freshly way? Inherit this gem in your rubocop.yml
70
84
  and keep your code fresh
71
85
  email:
@@ -83,14 +97,14 @@ files:
83
97
  - lib/spicerack/styleguide.rb
84
98
  - lib/spicerack/styleguide/version.rb
85
99
  - rubocop.yml
86
- homepage: https://github.com/Freshly/spicerack/tree/main/spicerack-styleguide
100
+ homepage: https://github.com/RubyAfterAll/spicerack/tree/main/spicerack-styleguide
87
101
  licenses:
88
102
  - MIT
89
103
  metadata:
90
- homepage_uri: https://github.com/Freshly/spicerack/tree/main/spicerack-styleguide
91
- source_code_uri: https://github.com/Freshly/spicerack/tree/main/spicerack-styleguide
92
- changelog_uri: https://github.com/Freshly/spicerack/blob/main/spicerack-styleguide/CHANGELOG.md
93
- documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.28.0
104
+ homepage_uri: https://github.com/RubyAfterAll/spicerack/tree/main/spicerack-styleguide
105
+ source_code_uri: https://github.com/RubyAfterAll/spicerack/tree/main/spicerack-styleguide
106
+ changelog_uri: https://github.com/RubyAfterAll/spicerack/blob/main/spicerack-styleguide/CHANGELOG.md
107
+ documentation_uri: https://www.rubydoc.info/gems/spicerack-styleguide/0.29.0
94
108
  post_install_message:
95
109
  rdoc_options: []
96
110
  require_paths:
@@ -106,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
120
  - !ruby/object:Gem::Version
107
121
  version: '0'
108
122
  requirements: []
109
- rubygems_version: 3.3.9
123
+ rubygems_version: 3.3.8
110
124
  signing_key:
111
125
  specification_version: 4
112
126
  summary: Rubocop Styleguide for Rails and RSpec.