chefstyle 1.5.0 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/chefstyle.yml +2 -0
- data/config/disable_all.yml +12 -0
- data/config/upstream.yml +135 -21
- data/lib/chefstyle/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea86ca41825de97c45f03fb4f92b3c24e9593581d7684e9c019a693b71086da7
|
4
|
+
data.tar.gz: dc61783edb3e841a55812f354fd638be1d490e91a8c8dac809f1ebda9c0d4925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1af3b9f104d275b7e24c91981aa307213eefdb4317edea2fa78786189cc04934632f940e4c8c4d3e337125f31922c6bf473134b09ea3e3d19b2a5e7380664107
|
7
|
+
data.tar.gz: e7924820282d4bfe70189ab37c483bf6cf4ef907ab31214bc7bbed8de15003b0323527d74b99ae6ef0d6036e4cbb220eb43382b2cef2c0262421a0cfd3fee73f
|
data/config/chefstyle.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
AllCops:
|
2
2
|
TargetRubyVersion: 2.4
|
3
|
+
SuggestExtensions: false
|
3
4
|
|
4
5
|
#
|
5
6
|
# Bundler
|
@@ -243,6 +244,7 @@ Layout/EmptyLineAfterGuardClause:
|
|
243
244
|
Enabled: true
|
244
245
|
Layout/EmptyLineBetweenDefs:
|
245
246
|
Enabled: true
|
247
|
+
AllowAdjacentOneLineDefs: true
|
246
248
|
Layout/EmptyLines:
|
247
249
|
Enabled: true
|
248
250
|
Layout/EmptyLinesAroundAccessModifier:
|
data/config/disable_all.yml
CHANGED
@@ -229,6 +229,8 @@ Lint/DeprecatedOpenSSLConstant:
|
|
229
229
|
Enabled: false
|
230
230
|
Lint/DisjunctiveAssignmentInConstructor:
|
231
231
|
Enabled: false
|
232
|
+
Lint/DuplicateBranch:
|
233
|
+
Enabled: false
|
232
234
|
Lint/DuplicateCaseCondition:
|
233
235
|
Enabled: false
|
234
236
|
Lint/DuplicateElsifCondition:
|
@@ -249,6 +251,8 @@ Lint/ElseLayout:
|
|
249
251
|
Enabled: false
|
250
252
|
Lint/EmptyBlock:
|
251
253
|
Enabled: false
|
254
|
+
Lint/EmptyClass:
|
255
|
+
Enabled: false
|
252
256
|
Lint/EmptyConditionalBody:
|
253
257
|
Enabled: false
|
254
258
|
Lint/EmptyEnsure:
|
@@ -389,6 +393,8 @@ Lint/TrailingCommaInAttributeDeclaration:
|
|
389
393
|
Enabled: false
|
390
394
|
Lint/UnderscorePrefixedVariableName:
|
391
395
|
Enabled: false
|
396
|
+
Lint/UnexpectedBlockArity:
|
397
|
+
Enabled: false
|
392
398
|
Lint/UnifiedInteger:
|
393
399
|
Enabled: false
|
394
400
|
Lint/UnmodifiedReduceAccumulator:
|
@@ -657,6 +663,8 @@ Style/RedundantSelfAssignment:
|
|
657
663
|
Enabled: false
|
658
664
|
Style/SoleNestedConditional:
|
659
665
|
Enabled: false
|
666
|
+
Style/StaticClass:
|
667
|
+
Enabled: false
|
660
668
|
Style/MethodCalledOnDoEndBlock:
|
661
669
|
Enabled: false
|
662
670
|
Style/MethodDefParentheses:
|
@@ -709,6 +717,8 @@ Style/Next:
|
|
709
717
|
Enabled: false
|
710
718
|
Style/NilComparison:
|
711
719
|
Enabled: false
|
720
|
+
Style/NilLambda:
|
721
|
+
Enabled: false
|
712
722
|
Style/NonNilCheck:
|
713
723
|
Enabled: false
|
714
724
|
Style/Not:
|
@@ -747,6 +757,8 @@ Style/RaiseArgs:
|
|
747
757
|
Enabled: false
|
748
758
|
Style/RandomWithOffset:
|
749
759
|
Enabled: false
|
760
|
+
Style/RedundantArgument:
|
761
|
+
Enabled: false
|
750
762
|
Style/RedundantBegin:
|
751
763
|
Enabled: false
|
752
764
|
Style/RedundantCapitalW:
|
data/config/upstream.yml
CHANGED
@@ -139,6 +139,16 @@ AllCops:
|
|
139
139
|
# from the lock file.) If the Ruby version is still unresolved, RuboCop will
|
140
140
|
# use the oldest officially supported Ruby version (currently Ruby 2.4).
|
141
141
|
TargetRubyVersion: ~
|
142
|
+
# Determines if a notification for extension libraries should be shown when
|
143
|
+
# rubocop is run. Keys are the name of the extension, and values are an array
|
144
|
+
# of gems in the Gemfile that the extension is suggested for, if not already
|
145
|
+
# included.
|
146
|
+
SuggestExtensions:
|
147
|
+
rubocop-rails: [rails]
|
148
|
+
rubocop-rspec: [rspec, rspec-rails]
|
149
|
+
rubocop-minitest: [minitest]
|
150
|
+
rubocop-sequel: [sequel]
|
151
|
+
rubocop-rake: [rake]
|
142
152
|
|
143
153
|
#################### Bundler ###############################
|
144
154
|
|
@@ -459,10 +469,14 @@ Layout/EmptyLineAfterMultilineCondition:
|
|
459
469
|
- https://github.com/airbnb/ruby#multiline-if-newline
|
460
470
|
|
461
471
|
Layout/EmptyLineBetweenDefs:
|
462
|
-
Description: 'Use empty lines between defs.'
|
472
|
+
Description: 'Use empty lines between class/module/method defs.'
|
463
473
|
StyleGuide: '#empty-lines-between-methods'
|
464
474
|
Enabled: true
|
465
475
|
VersionAdded: '0.49'
|
476
|
+
VersionChanged: '1.4'
|
477
|
+
EmptyLineBetweenMethodDefs: true
|
478
|
+
EmptyLineBetweenClassDefs: true
|
479
|
+
EmptyLineBetweenModuleDefs: true
|
466
480
|
# If `true`, this parameter means that single line method definitions don't
|
467
481
|
# need an empty line between them.
|
468
482
|
AllowAdjacentOneLineDefs: false
|
@@ -891,8 +905,8 @@ Layout/LineLength:
|
|
891
905
|
StyleGuide: '#max-line-length'
|
892
906
|
Enabled: true
|
893
907
|
VersionAdded: '0.25'
|
894
|
-
VersionChanged: '
|
895
|
-
AutoCorrect:
|
908
|
+
VersionChanged: '1.4'
|
909
|
+
AutoCorrect: true
|
896
910
|
Max: 120
|
897
911
|
# To make it possible to copy or click on URIs in the code, we allow lines
|
898
912
|
# containing a URI to be longer than Max.
|
@@ -1176,7 +1190,7 @@ Layout/SpaceBeforeBlockBraces:
|
|
1176
1190
|
SupportedStylesForEmptyBraces:
|
1177
1191
|
- space
|
1178
1192
|
- no_space
|
1179
|
-
VersionChanged: '0.52
|
1193
|
+
VersionChanged: '0.52'
|
1180
1194
|
|
1181
1195
|
Layout/SpaceBeforeComma:
|
1182
1196
|
Description: 'No spaces before commas.'
|
@@ -1400,6 +1414,11 @@ Lint/ConstantDefinitionInBlock:
|
|
1400
1414
|
StyleGuide: '#no-constant-definition-in-block'
|
1401
1415
|
Enabled: true
|
1402
1416
|
VersionAdded: '0.91'
|
1417
|
+
VersionChanged: '1.3'
|
1418
|
+
# `enums` for Typed Enums via T::Enum in Sorbet.
|
1419
|
+
# https://sorbet.org/docs/tenum
|
1420
|
+
AllowedMethods:
|
1421
|
+
- enums
|
1403
1422
|
|
1404
1423
|
Lint/ConstantResolution:
|
1405
1424
|
Description: 'Check that constants are fully qualified with `::`.'
|
@@ -1415,6 +1434,22 @@ Lint/Debugger:
|
|
1415
1434
|
Enabled: true
|
1416
1435
|
VersionAdded: '0.14'
|
1417
1436
|
VersionChanged: '0.49'
|
1437
|
+
DebuggerReceivers:
|
1438
|
+
- binding
|
1439
|
+
- Kernel
|
1440
|
+
- Pry
|
1441
|
+
DebuggerMethods:
|
1442
|
+
- debugger
|
1443
|
+
- byebug
|
1444
|
+
- remote_byebug
|
1445
|
+
- pry
|
1446
|
+
- remote_pry
|
1447
|
+
- pry_remote
|
1448
|
+
- console
|
1449
|
+
- rescue
|
1450
|
+
- save_and_open_page
|
1451
|
+
- save_and_open_screenshot
|
1452
|
+
- irb
|
1418
1453
|
|
1419
1454
|
Lint/DeprecatedClassMethods:
|
1420
1455
|
Description: 'Check for deprecated class method calls.'
|
@@ -1433,6 +1468,11 @@ Lint/DisjunctiveAssignmentInConstructor:
|
|
1433
1468
|
VersionAdded: '0.62'
|
1434
1469
|
VersionChanged: '0.88'
|
1435
1470
|
|
1471
|
+
Lint/DuplicateBranch:
|
1472
|
+
Description: Checks that there are no repeated bodies within `if/unless`, `case-when` and `rescue` constructs.
|
1473
|
+
Enabled: pending
|
1474
|
+
VersionAdded: '1.3'
|
1475
|
+
|
1436
1476
|
Lint/DuplicateCaseCondition:
|
1437
1477
|
Description: 'Do not repeat values in case conditionals.'
|
1438
1478
|
Enabled: true
|
@@ -1484,7 +1524,15 @@ Lint/EmptyBlock:
|
|
1484
1524
|
Description: 'This cop checks for blocks without a body.'
|
1485
1525
|
Enabled: pending
|
1486
1526
|
VersionAdded: '1.1'
|
1527
|
+
VersionChanged: '1.3'
|
1487
1528
|
AllowComments: true
|
1529
|
+
AllowEmptyLambdas: true
|
1530
|
+
|
1531
|
+
Lint/EmptyClass:
|
1532
|
+
Description: 'Checks for classes and metaclasses without a body.'
|
1533
|
+
Enabled: pending
|
1534
|
+
VersionAdded: '1.3'
|
1535
|
+
AllowComments: false
|
1488
1536
|
|
1489
1537
|
Lint/EmptyConditionalBody:
|
1490
1538
|
Description: 'This cop checks for the presence of `if`, `elsif` and `unless` branches without a body.'
|
@@ -1628,7 +1676,8 @@ Lint/Loop:
|
|
1628
1676
|
StyleGuide: '#loop-with-break'
|
1629
1677
|
Enabled: true
|
1630
1678
|
VersionAdded: '0.9'
|
1631
|
-
VersionChanged: '
|
1679
|
+
VersionChanged: '1.3'
|
1680
|
+
Safe: false
|
1632
1681
|
|
1633
1682
|
Lint/MissingCopEnableDirective:
|
1634
1683
|
Description: 'Checks for a `# rubocop:enable` after `# rubocop:disable`.'
|
@@ -1649,6 +1698,7 @@ Lint/MissingSuper:
|
|
1649
1698
|
without calls to `super`'.
|
1650
1699
|
Enabled: true
|
1651
1700
|
VersionAdded: '0.89'
|
1701
|
+
VersionChanged: '1.4'
|
1652
1702
|
|
1653
1703
|
Lint/MixedRegexpCaptureTypes:
|
1654
1704
|
Description: 'Do not mix named captures and numbered captures in a Regexp literal.'
|
@@ -1830,7 +1880,7 @@ Lint/RescueException:
|
|
1830
1880
|
StyleGuide: '#no-blind-rescues'
|
1831
1881
|
Enabled: true
|
1832
1882
|
VersionAdded: '0.9'
|
1833
|
-
VersionChanged: '0.27
|
1883
|
+
VersionChanged: '0.27'
|
1834
1884
|
|
1835
1885
|
Lint/RescueType:
|
1836
1886
|
Description: 'Avoid rescuing from non constants that could result in a `TypeError`.'
|
@@ -1958,6 +2008,23 @@ Lint/UnderscorePrefixedVariableName:
|
|
1958
2008
|
VersionAdded: '0.21'
|
1959
2009
|
AllowKeywordBlockArguments: false
|
1960
2010
|
|
2011
|
+
Lint/UnexpectedBlockArity:
|
2012
|
+
Description: 'Looks for blocks that have fewer arguments that the calling method expects.'
|
2013
|
+
Enabled: pending
|
2014
|
+
Safe: false
|
2015
|
+
VersionAdded: '1.5'
|
2016
|
+
Methods:
|
2017
|
+
chunk_while: 2
|
2018
|
+
each_with_index: 2
|
2019
|
+
each_with_object: 2
|
2020
|
+
inject: 2
|
2021
|
+
max: 2
|
2022
|
+
min: 2
|
2023
|
+
minmax: 2
|
2024
|
+
reduce: 2
|
2025
|
+
slice_when: 2
|
2026
|
+
sort: 2
|
2027
|
+
|
1961
2028
|
Lint/UnifiedInteger:
|
1962
2029
|
Description: 'Use Integer instead of Fixnum or Bignum.'
|
1963
2030
|
Enabled: true
|
@@ -1967,6 +2034,7 @@ Lint/UnmodifiedReduceAccumulator:
|
|
1967
2034
|
Description: Checks for `reduce` or `inject` blocks that do not update the accumulator each iteration.
|
1968
2035
|
Enabled: pending
|
1969
2036
|
VersionAdded: '1.1'
|
2037
|
+
VersionChanged: '1.5'
|
1970
2038
|
|
1971
2039
|
Lint/UnreachableCode:
|
1972
2040
|
Description: 'Unreachable code.'
|
@@ -2070,21 +2138,23 @@ Metrics/AbcSize:
|
|
2070
2138
|
- https://en.wikipedia.org/wiki/ABC_Software_Metric
|
2071
2139
|
Enabled: true
|
2072
2140
|
VersionAdded: '0.27'
|
2073
|
-
VersionChanged: '
|
2141
|
+
VersionChanged: '1.5'
|
2074
2142
|
# The ABC size is a calculated magnitude, so this number can be an Integer or
|
2075
2143
|
# a Float.
|
2076
2144
|
IgnoredMethods: []
|
2145
|
+
CountRepeatedAttributes: true
|
2077
2146
|
Max: 17
|
2078
2147
|
|
2079
2148
|
Metrics/BlockLength:
|
2080
2149
|
Description: 'Avoid long blocks with many lines.'
|
2081
2150
|
Enabled: true
|
2082
2151
|
VersionAdded: '0.44'
|
2083
|
-
VersionChanged: '
|
2152
|
+
VersionChanged: '1.5'
|
2084
2153
|
CountComments: false # count full line comments?
|
2085
2154
|
Max: 25
|
2086
2155
|
CountAsOne: []
|
2087
|
-
ExcludedMethods:
|
2156
|
+
ExcludedMethods: [] # deprecated, retained for backwards compatibility
|
2157
|
+
IgnoredMethods:
|
2088
2158
|
# By default, exclude the `#refine` method, as it tends to have larger
|
2089
2159
|
# associated blocks.
|
2090
2160
|
- refine
|
@@ -2125,11 +2195,12 @@ Metrics/MethodLength:
|
|
2125
2195
|
StyleGuide: '#short-methods'
|
2126
2196
|
Enabled: true
|
2127
2197
|
VersionAdded: '0.25'
|
2128
|
-
VersionChanged: '
|
2198
|
+
VersionChanged: '1.5'
|
2129
2199
|
CountComments: false # count full line comments?
|
2130
2200
|
Max: 10
|
2131
2201
|
CountAsOne: []
|
2132
|
-
ExcludedMethods: []
|
2202
|
+
ExcludedMethods: [] # deprecated, retained for backwards compatibility
|
2203
|
+
IgnoredMethods: []
|
2133
2204
|
|
2134
2205
|
Metrics/ModuleLength:
|
2135
2206
|
Description: 'Avoid modules longer than 100 lines of code.'
|
@@ -2145,8 +2216,10 @@ Metrics/ParameterLists:
|
|
2145
2216
|
StyleGuide: '#too-many-params'
|
2146
2217
|
Enabled: true
|
2147
2218
|
VersionAdded: '0.25'
|
2219
|
+
VersionChanged: '1.5'
|
2148
2220
|
Max: 5
|
2149
2221
|
CountKeywordArgs: true
|
2222
|
+
MaxOptionalParameters: 3
|
2150
2223
|
|
2151
2224
|
Metrics/PerceivedComplexity:
|
2152
2225
|
Description: >-
|
@@ -2416,7 +2489,7 @@ Naming/VariableNumber:
|
|
2416
2489
|
StyleGuide: '#snake-case-symbols-methods-vars-with-numbers'
|
2417
2490
|
Enabled: true
|
2418
2491
|
VersionAdded: '0.50'
|
2419
|
-
VersionChanged: '1.
|
2492
|
+
VersionChanged: '1.4'
|
2420
2493
|
EnforcedStyle: normalcase
|
2421
2494
|
SupportedStyles:
|
2422
2495
|
- snake_case
|
@@ -2424,6 +2497,13 @@ Naming/VariableNumber:
|
|
2424
2497
|
- non_integer
|
2425
2498
|
CheckMethodNames: true
|
2426
2499
|
CheckSymbols: true
|
2500
|
+
AllowedIdentifiers:
|
2501
|
+
- capture3 # Open3.capture3
|
2502
|
+
- iso8601 # Time#iso8601
|
2503
|
+
- rfc1123_date # CGI.rfc1123_date
|
2504
|
+
- rfc822 # Time#rfc822
|
2505
|
+
- rfc2822 # Time#rfc2822
|
2506
|
+
- rfc3339 # DateTime.rfc3339
|
2427
2507
|
|
2428
2508
|
#################### Security ##############################
|
2429
2509
|
|
@@ -2805,7 +2885,9 @@ Style/ClassVars:
|
|
2805
2885
|
Style/CollectionCompact:
|
2806
2886
|
Description: 'Use `{Array,Hash}#{compact,compact!}` instead of custom logic to reject nils.'
|
2807
2887
|
Enabled: pending
|
2888
|
+
Safe: false
|
2808
2889
|
VersionAdded: '1.2'
|
2890
|
+
VersionChanged: '1.3'
|
2809
2891
|
|
2810
2892
|
# Align with the style guide.
|
2811
2893
|
Style/CollectionMethods:
|
@@ -2870,17 +2952,18 @@ Style/CommandLiteral:
|
|
2870
2952
|
Style/CommentAnnotation:
|
2871
2953
|
Description: >-
|
2872
2954
|
Checks formatting of special comments
|
2873
|
-
(TODO, FIXME, OPTIMIZE, HACK, REVIEW).
|
2955
|
+
(TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE).
|
2874
2956
|
StyleGuide: '#annotate-keywords'
|
2875
2957
|
Enabled: true
|
2876
2958
|
VersionAdded: '0.10'
|
2877
|
-
VersionChanged: '
|
2959
|
+
VersionChanged: '1.3'
|
2878
2960
|
Keywords:
|
2879
2961
|
- TODO
|
2880
2962
|
- FIXME
|
2881
2963
|
- OPTIMIZE
|
2882
2964
|
- HACK
|
2883
2965
|
- REVIEW
|
2966
|
+
- NOTE
|
2884
2967
|
|
2885
2968
|
Style/CommentedKeyword:
|
2886
2969
|
Description: 'Do not place comments on the same line as certain keywords.'
|
@@ -2976,6 +3059,7 @@ Style/DocumentDynamicEvalDefinition:
|
|
2976
3059
|
StyleGuide: '#eval-comment-docs'
|
2977
3060
|
Enabled: pending
|
2978
3061
|
VersionAdded: '1.1'
|
3062
|
+
VersionChanged: '1.3'
|
2979
3063
|
|
2980
3064
|
Style/Documentation:
|
2981
3065
|
Description: 'Document classes and non-namespace modules.'
|
@@ -3125,9 +3209,10 @@ Style/ExponentialNotation:
|
|
3125
3209
|
Style/FloatDivision:
|
3126
3210
|
Description: 'For performing float division, coerce one side only.'
|
3127
3211
|
StyleGuide: '#float-division'
|
3128
|
-
Reference: 'https://
|
3212
|
+
Reference: 'https://blog.rubystyle.guide/ruby/2019/06/21/float-division.html'
|
3129
3213
|
Enabled: true
|
3130
3214
|
VersionAdded: '0.72'
|
3215
|
+
VersionChanged: '1.6'
|
3131
3216
|
EnforcedStyle: single_coerce
|
3132
3217
|
SupportedStyles:
|
3133
3218
|
- left_coerce
|
@@ -3303,6 +3388,7 @@ Style/IfInsideElse:
|
|
3303
3388
|
Enabled: true
|
3304
3389
|
AllowIfModifier: false
|
3305
3390
|
VersionAdded: '0.36'
|
3391
|
+
VersionChanged: '1.3'
|
3306
3392
|
|
3307
3393
|
Style/IfUnlessModifier:
|
3308
3394
|
Description: >-
|
@@ -3335,12 +3421,14 @@ Style/ImplicitRuntimeError:
|
|
3335
3421
|
VersionAdded: '0.41'
|
3336
3422
|
|
3337
3423
|
Style/InfiniteLoop:
|
3338
|
-
Description:
|
3424
|
+
Description: >-
|
3425
|
+
Use Kernel#loop for infinite loops.
|
3426
|
+
This cop is unsafe in the body may raise a `StopIteration` exception.
|
3427
|
+
Safe: false
|
3339
3428
|
StyleGuide: '#infinite-loop'
|
3340
3429
|
Enabled: true
|
3341
3430
|
VersionAdded: '0.26'
|
3342
3431
|
VersionChanged: '0.61'
|
3343
|
-
SafeAutoCorrect: true
|
3344
3432
|
|
3345
3433
|
Style/InlineComment:
|
3346
3434
|
Description: 'Avoid trailing inline comments.'
|
@@ -3723,6 +3811,11 @@ Style/NilComparison:
|
|
3723
3811
|
- predicate
|
3724
3812
|
- comparison
|
3725
3813
|
|
3814
|
+
Style/NilLambda:
|
3815
|
+
Description: 'Prefer `-> {}` to `-> { nil }`.'
|
3816
|
+
Enabled: pending
|
3817
|
+
VersionAdded: '1.3'
|
3818
|
+
|
3726
3819
|
Style/NonNilCheck:
|
3727
3820
|
Description: 'Checks for redundant nil checks.'
|
3728
3821
|
StyleGuide: '#no-non-nil-checks'
|
@@ -3872,7 +3965,7 @@ Style/PercentLiteralDelimiters:
|
|
3872
3965
|
'%r': '{}'
|
3873
3966
|
'%w': '[]'
|
3874
3967
|
'%W': '[]'
|
3875
|
-
VersionChanged: '0.48
|
3968
|
+
VersionChanged: '0.48'
|
3876
3969
|
|
3877
3970
|
Style/PercentQLiterals:
|
3878
3971
|
Description: 'Checks if uses of %Q/%q match the configured preference.'
|
@@ -3928,6 +4021,18 @@ Style/RandomWithOffset:
|
|
3928
4021
|
Enabled: true
|
3929
4022
|
VersionAdded: '0.52'
|
3930
4023
|
|
4024
|
+
Style/RedundantArgument:
|
4025
|
+
Description: 'Check for a redundant argument passed to certain methods.'
|
4026
|
+
Enabled: pending
|
4027
|
+
Safe: false
|
4028
|
+
VersionAdded: '1.4'
|
4029
|
+
VersionChanged: '1.6'
|
4030
|
+
Methods:
|
4031
|
+
# Array#join
|
4032
|
+
join: ''
|
4033
|
+
# String#split
|
4034
|
+
split: ' '
|
4035
|
+
|
3931
4036
|
Style/RedundantAssignment:
|
3932
4037
|
Description: 'Checks for redundant assignment before returning.'
|
3933
4038
|
Enabled: true
|
@@ -4169,7 +4274,7 @@ Style/SingleLineBlockParams:
|
|
4169
4274
|
Description: 'Enforces the names of some block params.'
|
4170
4275
|
Enabled: false
|
4171
4276
|
VersionAdded: '0.16'
|
4172
|
-
VersionChanged: '
|
4277
|
+
VersionChanged: '1.6'
|
4173
4278
|
Methods:
|
4174
4279
|
- reduce:
|
4175
4280
|
- acc
|
@@ -4198,6 +4303,7 @@ Style/SoleNestedConditional:
|
|
4198
4303
|
which can be merged into outer conditional node.
|
4199
4304
|
Enabled: true
|
4200
4305
|
VersionAdded: '0.89'
|
4306
|
+
VersionChanged: '1.5'
|
4201
4307
|
AllowModifier: false
|
4202
4308
|
|
4203
4309
|
Style/SpecialGlobalVars:
|
@@ -4222,6 +4328,13 @@ Style/StabbyLambdaParentheses:
|
|
4222
4328
|
- require_parentheses
|
4223
4329
|
- require_no_parentheses
|
4224
4330
|
|
4331
|
+
Style/StaticClass:
|
4332
|
+
Description: 'Prefer modules to classes with only class methods.'
|
4333
|
+
StyleGuide: '#modules-vs-classes'
|
4334
|
+
Enabled: false
|
4335
|
+
Safe: false
|
4336
|
+
VersionAdded: '1.3'
|
4337
|
+
|
4225
4338
|
Style/StderrPuts:
|
4226
4339
|
Description: 'Use `warn` instead of `$stderr.puts`.'
|
4227
4340
|
StyleGuide: '#warn'
|
@@ -4234,6 +4347,7 @@ Style/StringConcatenation:
|
|
4234
4347
|
Enabled: true
|
4235
4348
|
Safe: false
|
4236
4349
|
VersionAdded: '0.89'
|
4350
|
+
VersionChanged: '1.6'
|
4237
4351
|
|
4238
4352
|
Style/StringHashKeys:
|
4239
4353
|
Description: 'Prefer symbols instead of strings as hash keys.'
|
@@ -4272,7 +4386,7 @@ Style/StringMethods:
|
|
4272
4386
|
Description: 'Checks if configured preferred methods are used over non-preferred.'
|
4273
4387
|
Enabled: false
|
4274
4388
|
VersionAdded: '0.34'
|
4275
|
-
VersionChanged: '0.34
|
4389
|
+
VersionChanged: '0.34'
|
4276
4390
|
# Mapping from undesired method to desired_method
|
4277
4391
|
# e.g. to use `to_sym` over `intern`:
|
4278
4392
|
#
|
@@ -4323,7 +4437,7 @@ Style/SymbolProc:
|
|
4323
4437
|
Enabled: true
|
4324
4438
|
Safe: false
|
4325
4439
|
VersionAdded: '0.26'
|
4326
|
-
VersionChanged: '
|
4440
|
+
VersionChanged: '1.5'
|
4327
4441
|
# A list of method names to be ignored by the check.
|
4328
4442
|
# The names should be fairly unique, otherwise you'll end up ignoring lots of code.
|
4329
4443
|
IgnoredMethods:
|
data/lib/chefstyle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chefstyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.6.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: 1.
|
26
|
+
version: 1.6.1
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- oss@chef.io
|