chefstyle 1.5.1 → 1.5.9
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 +10 -0
- data/config/upstream.yml +126 -22
- 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: b6f67ca0a627efc674ce84e4a44d3cd9672df9a5aa437920419e52d78f54a522
|
4
|
+
data.tar.gz: b19a72c80e5901bbabec3c471a09eeca2ac52682c8f83a993aaabc2fe563b98b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdfed9329f20f86c442d23aacb699b1e0490100b2ba442246e60ab42c5037e444f2fa54454c49d9907af999b6597ed3a2249d00f58adb5c56636cb12dadbf60b
|
7
|
+
data.tar.gz: c688dae316d6366248cc2c7e22eca0fb9cc40935c52f4daaf0e90e5ef74137b1bc50f7ef551768b7d5a341bcae23937543387494360e7c3c4aafe0f22b2bcd45
|
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
@@ -169,6 +169,8 @@ Layout/SpaceAroundOperators:
|
|
169
169
|
Enabled: false
|
170
170
|
Layout/SpaceBeforeBlockBraces:
|
171
171
|
Enabled: false
|
172
|
+
Layout/SpaceBeforeBrackets:
|
173
|
+
Enabled: false
|
172
174
|
Layout/SpaceBeforeComma:
|
173
175
|
Enabled: false
|
174
176
|
Layout/SpaceBeforeComment:
|
@@ -201,6 +203,8 @@ Layout/TrailingEmptyLines:
|
|
201
203
|
Enabled: false
|
202
204
|
Layout/TrailingWhitespace:
|
203
205
|
Enabled: false
|
206
|
+
Lint/AmbiguousAssignment:
|
207
|
+
Enabled: false
|
204
208
|
Lint/AmbiguousBlockAssociation:
|
205
209
|
Enabled: false
|
206
210
|
Lint/AmbiguousOperator:
|
@@ -393,6 +397,8 @@ Lint/TrailingCommaInAttributeDeclaration:
|
|
393
397
|
Enabled: false
|
394
398
|
Lint/UnderscorePrefixedVariableName:
|
395
399
|
Enabled: false
|
400
|
+
Lint/UnexpectedBlockArity:
|
401
|
+
Enabled: false
|
396
402
|
Lint/UnifiedInteger:
|
397
403
|
Enabled: false
|
398
404
|
Lint/UnmodifiedReduceAccumulator:
|
@@ -611,6 +617,8 @@ Style/HashAsLastArrayItem:
|
|
611
617
|
Enabled: false
|
612
618
|
Style/HashEachMethods:
|
613
619
|
Enabled: false
|
620
|
+
Style/HashExcept:
|
621
|
+
Enabled: false
|
614
622
|
Style/HashLikeCase:
|
615
623
|
Enabled: false
|
616
624
|
Style/HashSyntax:
|
@@ -755,6 +763,8 @@ Style/RaiseArgs:
|
|
755
763
|
Enabled: false
|
756
764
|
Style/RandomWithOffset:
|
757
765
|
Enabled: false
|
766
|
+
Style/RedundantArgument:
|
767
|
+
Enabled: false
|
758
768
|
Style/RedundantBegin:
|
759
769
|
Enabled: false
|
760
770
|
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.7'
|
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: '1.
|
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,14 @@ Layout/SpaceBeforeBlockBraces:
|
|
1176
1190
|
SupportedStylesForEmptyBraces:
|
1177
1191
|
- space
|
1178
1192
|
- no_space
|
1179
|
-
VersionChanged: '0.52
|
1193
|
+
VersionChanged: '0.52'
|
1194
|
+
|
1195
|
+
Layout/SpaceBeforeBrackets:
|
1196
|
+
Description: 'Checks for receiver with a space before the opening brackets.'
|
1197
|
+
StyleGuide: '#space-in-brackets-access'
|
1198
|
+
Enabled: pending
|
1199
|
+
VersionAdded: '1.7'
|
1200
|
+
Safe: false
|
1180
1201
|
|
1181
1202
|
Layout/SpaceBeforeComma:
|
1182
1203
|
Description: 'No spaces before commas.'
|
@@ -1340,6 +1361,11 @@ Layout/TrailingWhitespace:
|
|
1340
1361
|
#################### Lint ##################################
|
1341
1362
|
### Warnings
|
1342
1363
|
|
1364
|
+
Lint/AmbiguousAssignment:
|
1365
|
+
Description: 'Checks for mistyped shorthand assignments.'
|
1366
|
+
Enabled: pending
|
1367
|
+
VersionAdded: '1.7'
|
1368
|
+
|
1343
1369
|
Lint/AmbiguousBlockAssociation:
|
1344
1370
|
Description: >-
|
1345
1371
|
Checks for ambiguous block association with method when param passed without
|
@@ -1382,6 +1408,7 @@ Lint/BinaryOperatorWithIdenticalOperands:
|
|
1382
1408
|
Enabled: true
|
1383
1409
|
Safe: false
|
1384
1410
|
VersionAdded: '0.89'
|
1411
|
+
VersionChanged: '1.7'
|
1385
1412
|
|
1386
1413
|
Lint/BooleanSymbol:
|
1387
1414
|
Description: 'Check for `:true` and `:false` symbols.'
|
@@ -1401,7 +1428,10 @@ Lint/ConstantDefinitionInBlock:
|
|
1401
1428
|
Enabled: true
|
1402
1429
|
VersionAdded: '0.91'
|
1403
1430
|
VersionChanged: '1.3'
|
1404
|
-
|
1431
|
+
# `enums` for Typed Enums via T::Enum in Sorbet.
|
1432
|
+
# https://sorbet.org/docs/tenum
|
1433
|
+
AllowedMethods:
|
1434
|
+
- enums
|
1405
1435
|
|
1406
1436
|
Lint/ConstantResolution:
|
1407
1437
|
Description: 'Check that constants are fully qualified with `::`.'
|
@@ -1455,6 +1485,9 @@ Lint/DuplicateBranch:
|
|
1455
1485
|
Description: Checks that there are no repeated bodies within `if/unless`, `case-when` and `rescue` constructs.
|
1456
1486
|
Enabled: pending
|
1457
1487
|
VersionAdded: '1.3'
|
1488
|
+
VersionChanged: '1.7'
|
1489
|
+
IgnoreLiteralBranches: false
|
1490
|
+
IgnoreConstantBranches: false
|
1458
1491
|
|
1459
1492
|
Lint/DuplicateCaseCondition:
|
1460
1493
|
Description: 'Do not repeat values in case conditionals.'
|
@@ -1681,6 +1714,7 @@ Lint/MissingSuper:
|
|
1681
1714
|
without calls to `super`'.
|
1682
1715
|
Enabled: true
|
1683
1716
|
VersionAdded: '0.89'
|
1717
|
+
VersionChanged: '1.4'
|
1684
1718
|
|
1685
1719
|
Lint/MixedRegexpCaptureTypes:
|
1686
1720
|
Description: 'Do not mix named captures and numbered captures in a Regexp literal.'
|
@@ -1824,6 +1858,8 @@ Lint/RedundantSplatExpansion:
|
|
1824
1858
|
Description: 'Checks for splat unnecessarily being called on literals.'
|
1825
1859
|
Enabled: true
|
1826
1860
|
VersionAdded: '0.76'
|
1861
|
+
VersionChanged: '1.7'
|
1862
|
+
AllowPercentLiteralArrayArgument: true
|
1827
1863
|
|
1828
1864
|
Lint/RedundantStringCoercion:
|
1829
1865
|
Description: 'Checks for Object#to_s usage in string interpolation.'
|
@@ -1862,7 +1898,7 @@ Lint/RescueException:
|
|
1862
1898
|
StyleGuide: '#no-blind-rescues'
|
1863
1899
|
Enabled: true
|
1864
1900
|
VersionAdded: '0.9'
|
1865
|
-
VersionChanged: '0.27
|
1901
|
+
VersionChanged: '0.27'
|
1866
1902
|
|
1867
1903
|
Lint/RescueType:
|
1868
1904
|
Description: 'Avoid rescuing from non constants that could result in a `TypeError`.'
|
@@ -1990,6 +2026,23 @@ Lint/UnderscorePrefixedVariableName:
|
|
1990
2026
|
VersionAdded: '0.21'
|
1991
2027
|
AllowKeywordBlockArguments: false
|
1992
2028
|
|
2029
|
+
Lint/UnexpectedBlockArity:
|
2030
|
+
Description: 'Looks for blocks that have fewer arguments that the calling method expects.'
|
2031
|
+
Enabled: pending
|
2032
|
+
Safe: false
|
2033
|
+
VersionAdded: '1.5'
|
2034
|
+
Methods:
|
2035
|
+
chunk_while: 2
|
2036
|
+
each_with_index: 2
|
2037
|
+
each_with_object: 2
|
2038
|
+
inject: 2
|
2039
|
+
max: 2
|
2040
|
+
min: 2
|
2041
|
+
minmax: 2
|
2042
|
+
reduce: 2
|
2043
|
+
slice_when: 2
|
2044
|
+
sort: 2
|
2045
|
+
|
1993
2046
|
Lint/UnifiedInteger:
|
1994
2047
|
Description: 'Use Integer instead of Fixnum or Bignum.'
|
1995
2048
|
Enabled: true
|
@@ -1999,6 +2052,7 @@ Lint/UnmodifiedReduceAccumulator:
|
|
1999
2052
|
Description: Checks for `reduce` or `inject` blocks that do not update the accumulator each iteration.
|
2000
2053
|
Enabled: pending
|
2001
2054
|
VersionAdded: '1.1'
|
2055
|
+
VersionChanged: '1.5'
|
2002
2056
|
|
2003
2057
|
Lint/UnreachableCode:
|
2004
2058
|
Description: 'Unreachable code.'
|
@@ -2009,6 +2063,11 @@ Lint/UnreachableLoop:
|
|
2009
2063
|
Description: 'This cop checks for loops that will have at most one iteration.'
|
2010
2064
|
Enabled: true
|
2011
2065
|
VersionAdded: '0.89'
|
2066
|
+
VersionChanged: '1.7'
|
2067
|
+
IgnoredPatterns:
|
2068
|
+
# RSpec uses `times` in its message expectations
|
2069
|
+
# eg. `exactly(2).times`
|
2070
|
+
- !ruby/regexp /(exactly|at_least|at_most)\(\d+\)\.times/
|
2012
2071
|
|
2013
2072
|
Lint/UnusedBlockArgument:
|
2014
2073
|
Description: 'Checks for unused block arguments.'
|
@@ -2102,21 +2161,23 @@ Metrics/AbcSize:
|
|
2102
2161
|
- https://en.wikipedia.org/wiki/ABC_Software_Metric
|
2103
2162
|
Enabled: true
|
2104
2163
|
VersionAdded: '0.27'
|
2105
|
-
VersionChanged: '
|
2164
|
+
VersionChanged: '1.5'
|
2106
2165
|
# The ABC size is a calculated magnitude, so this number can be an Integer or
|
2107
2166
|
# a Float.
|
2108
2167
|
IgnoredMethods: []
|
2168
|
+
CountRepeatedAttributes: true
|
2109
2169
|
Max: 17
|
2110
2170
|
|
2111
2171
|
Metrics/BlockLength:
|
2112
2172
|
Description: 'Avoid long blocks with many lines.'
|
2113
2173
|
Enabled: true
|
2114
2174
|
VersionAdded: '0.44'
|
2115
|
-
VersionChanged: '
|
2175
|
+
VersionChanged: '1.5'
|
2116
2176
|
CountComments: false # count full line comments?
|
2117
2177
|
Max: 25
|
2118
2178
|
CountAsOne: []
|
2119
|
-
ExcludedMethods:
|
2179
|
+
ExcludedMethods: [] # deprecated, retained for backwards compatibility
|
2180
|
+
IgnoredMethods:
|
2120
2181
|
# By default, exclude the `#refine` method, as it tends to have larger
|
2121
2182
|
# associated blocks.
|
2122
2183
|
- refine
|
@@ -2157,11 +2218,12 @@ Metrics/MethodLength:
|
|
2157
2218
|
StyleGuide: '#short-methods'
|
2158
2219
|
Enabled: true
|
2159
2220
|
VersionAdded: '0.25'
|
2160
|
-
VersionChanged: '
|
2221
|
+
VersionChanged: '1.5'
|
2161
2222
|
CountComments: false # count full line comments?
|
2162
2223
|
Max: 10
|
2163
2224
|
CountAsOne: []
|
2164
|
-
ExcludedMethods: []
|
2225
|
+
ExcludedMethods: [] # deprecated, retained for backwards compatibility
|
2226
|
+
IgnoredMethods: []
|
2165
2227
|
|
2166
2228
|
Metrics/ModuleLength:
|
2167
2229
|
Description: 'Avoid modules longer than 100 lines of code.'
|
@@ -2177,8 +2239,10 @@ Metrics/ParameterLists:
|
|
2177
2239
|
StyleGuide: '#too-many-params'
|
2178
2240
|
Enabled: true
|
2179
2241
|
VersionAdded: '0.25'
|
2242
|
+
VersionChanged: '1.5'
|
2180
2243
|
Max: 5
|
2181
2244
|
CountKeywordArgs: true
|
2245
|
+
MaxOptionalParameters: 3
|
2182
2246
|
|
2183
2247
|
Metrics/PerceivedComplexity:
|
2184
2248
|
Description: >-
|
@@ -2448,7 +2512,7 @@ Naming/VariableNumber:
|
|
2448
2512
|
StyleGuide: '#snake-case-symbols-methods-vars-with-numbers'
|
2449
2513
|
Enabled: true
|
2450
2514
|
VersionAdded: '0.50'
|
2451
|
-
VersionChanged: '1.
|
2515
|
+
VersionChanged: '1.4'
|
2452
2516
|
EnforcedStyle: normalcase
|
2453
2517
|
SupportedStyles:
|
2454
2518
|
- snake_case
|
@@ -2456,7 +2520,13 @@ Naming/VariableNumber:
|
|
2456
2520
|
- non_integer
|
2457
2521
|
CheckMethodNames: true
|
2458
2522
|
CheckSymbols: true
|
2459
|
-
AllowedIdentifiers:
|
2523
|
+
AllowedIdentifiers:
|
2524
|
+
- capture3 # Open3.capture3
|
2525
|
+
- iso8601 # Time#iso8601
|
2526
|
+
- rfc1123_date # CGI.rfc1123_date
|
2527
|
+
- rfc822 # Time#rfc822
|
2528
|
+
- rfc2822 # Time#rfc2822
|
2529
|
+
- rfc3339 # DateTime.rfc3339
|
2460
2530
|
|
2461
2531
|
#################### Security ##############################
|
2462
2532
|
|
@@ -2848,7 +2918,7 @@ Style/CollectionMethods:
|
|
2848
2918
|
StyleGuide: '#map-find-select-reduce-include-size'
|
2849
2919
|
Enabled: false
|
2850
2920
|
VersionAdded: '0.9'
|
2851
|
-
VersionChanged: '
|
2921
|
+
VersionChanged: '1.7'
|
2852
2922
|
Safe: false
|
2853
2923
|
# Mapping from undesired method to desired method
|
2854
2924
|
# e.g. to use `detect` over `find`:
|
@@ -2863,6 +2933,11 @@ Style/CollectionMethods:
|
|
2863
2933
|
detect: 'find'
|
2864
2934
|
find_all: 'select'
|
2865
2935
|
member?: 'include?'
|
2936
|
+
# Methods in this array accept a final symbol as an implicit block
|
2937
|
+
# eg. `inject(:+)`
|
2938
|
+
MethodsAcceptingSymbol:
|
2939
|
+
- inject
|
2940
|
+
- reduce
|
2866
2941
|
|
2867
2942
|
Style/ColonMethodCall:
|
2868
2943
|
Description: 'Do not use :: for method call.'
|
@@ -2922,6 +2997,7 @@ Style/CommentedKeyword:
|
|
2922
2997
|
Description: 'Do not place comments on the same line as certain keywords.'
|
2923
2998
|
Enabled: true
|
2924
2999
|
VersionAdded: '0.51'
|
3000
|
+
VersionChanged: '1.7'
|
2925
3001
|
|
2926
3002
|
Style/ConditionalAssignment:
|
2927
3003
|
Description: >-
|
@@ -3162,9 +3238,10 @@ Style/ExponentialNotation:
|
|
3162
3238
|
Style/FloatDivision:
|
3163
3239
|
Description: 'For performing float division, coerce one side only.'
|
3164
3240
|
StyleGuide: '#float-division'
|
3165
|
-
Reference: 'https://
|
3241
|
+
Reference: 'https://blog.rubystyle.guide/ruby/2019/06/21/float-division.html'
|
3166
3242
|
Enabled: true
|
3167
3243
|
VersionAdded: '0.72'
|
3244
|
+
VersionChanged: '1.6'
|
3168
3245
|
EnforcedStyle: single_coerce
|
3169
3246
|
SupportedStyles:
|
3170
3247
|
- left_coerce
|
@@ -3280,6 +3357,13 @@ Style/HashEachMethods:
|
|
3280
3357
|
VersionAdded: '0.80'
|
3281
3358
|
Safe: false
|
3282
3359
|
|
3360
|
+
Style/HashExcept:
|
3361
|
+
Description: >-
|
3362
|
+
Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods
|
3363
|
+
that can be replaced with `Hash#except` method.
|
3364
|
+
Enabled: pending
|
3365
|
+
VersionAdded: '1.7'
|
3366
|
+
|
3283
3367
|
Style/HashLikeCase:
|
3284
3368
|
Description: >-
|
3285
3369
|
Checks for places where `case-when` represents a simple 1:1
|
@@ -3434,6 +3518,7 @@ Style/KeywordParametersOrder:
|
|
3434
3518
|
StyleGuide: '#keyword-parameters-order'
|
3435
3519
|
Enabled: true
|
3436
3520
|
VersionAdded: '0.90'
|
3521
|
+
VersionChanged: '1.7'
|
3437
3522
|
|
3438
3523
|
Style/Lambda:
|
3439
3524
|
Description: 'Use the new lambda literal syntax for single-line blocks.'
|
@@ -3472,7 +3557,7 @@ Style/MethodCallWithArgsParentheses:
|
|
3472
3557
|
StyleGuide: '#method-invocation-parens'
|
3473
3558
|
Enabled: false
|
3474
3559
|
VersionAdded: '0.47'
|
3475
|
-
VersionChanged: '
|
3560
|
+
VersionChanged: '1.7'
|
3476
3561
|
IgnoreMacros: true
|
3477
3562
|
IgnoredMethods: []
|
3478
3563
|
IgnoredPatterns: []
|
@@ -3506,7 +3591,7 @@ Style/MethodDefParentheses:
|
|
3506
3591
|
StyleGuide: '#method-parens'
|
3507
3592
|
Enabled: true
|
3508
3593
|
VersionAdded: '0.16'
|
3509
|
-
VersionChanged: '
|
3594
|
+
VersionChanged: '1.7'
|
3510
3595
|
EnforcedStyle: require_parentheses
|
3511
3596
|
SupportedStyles:
|
3512
3597
|
- require_parentheses
|
@@ -3612,6 +3697,7 @@ Style/MultilineMethodSignature:
|
|
3612
3697
|
Description: 'Avoid multi-line method signatures.'
|
3613
3698
|
Enabled: false
|
3614
3699
|
VersionAdded: '0.59'
|
3700
|
+
VersionChanged: '1.7'
|
3615
3701
|
|
3616
3702
|
Style/MultilineTernaryOperator:
|
3617
3703
|
Description: >-
|
@@ -3917,7 +4003,7 @@ Style/PercentLiteralDelimiters:
|
|
3917
4003
|
'%r': '{}'
|
3918
4004
|
'%w': '[]'
|
3919
4005
|
'%W': '[]'
|
3920
|
-
VersionChanged: '0.48
|
4006
|
+
VersionChanged: '0.48'
|
3921
4007
|
|
3922
4008
|
Style/PercentQLiterals:
|
3923
4009
|
Description: 'Checks if uses of %Q/%q match the configured preference.'
|
@@ -3973,6 +4059,22 @@ Style/RandomWithOffset:
|
|
3973
4059
|
Enabled: true
|
3974
4060
|
VersionAdded: '0.52'
|
3975
4061
|
|
4062
|
+
Style/RedundantArgument:
|
4063
|
+
Description: 'Check for a redundant argument passed to certain methods.'
|
4064
|
+
Enabled: pending
|
4065
|
+
Safe: false
|
4066
|
+
VersionAdded: '1.4'
|
4067
|
+
VersionChanged: '1.7'
|
4068
|
+
Methods:
|
4069
|
+
# Array#join
|
4070
|
+
join: ''
|
4071
|
+
# String#split
|
4072
|
+
split: ' '
|
4073
|
+
# String#chomp
|
4074
|
+
chomp: "\n"
|
4075
|
+
# String#chomp!
|
4076
|
+
chomp!: "\n"
|
4077
|
+
|
3976
4078
|
Style/RedundantAssignment:
|
3977
4079
|
Description: 'Checks for redundant assignment before returning.'
|
3978
4080
|
Enabled: true
|
@@ -4214,7 +4316,7 @@ Style/SingleLineBlockParams:
|
|
4214
4316
|
Description: 'Enforces the names of some block params.'
|
4215
4317
|
Enabled: false
|
4216
4318
|
VersionAdded: '0.16'
|
4217
|
-
VersionChanged: '
|
4319
|
+
VersionChanged: '1.6'
|
4218
4320
|
Methods:
|
4219
4321
|
- reduce:
|
4220
4322
|
- acc
|
@@ -4228,7 +4330,7 @@ Style/SingleLineMethods:
|
|
4228
4330
|
StyleGuide: '#no-single-line-methods'
|
4229
4331
|
Enabled: true
|
4230
4332
|
VersionAdded: '0.9'
|
4231
|
-
VersionChanged: '
|
4333
|
+
VersionChanged: '1.7'
|
4232
4334
|
AllowIfMethodIsEmpty: true
|
4233
4335
|
|
4234
4336
|
Style/SlicingWithRange:
|
@@ -4243,6 +4345,7 @@ Style/SoleNestedConditional:
|
|
4243
4345
|
which can be merged into outer conditional node.
|
4244
4346
|
Enabled: true
|
4245
4347
|
VersionAdded: '0.89'
|
4348
|
+
VersionChanged: '1.5'
|
4246
4349
|
AllowModifier: false
|
4247
4350
|
|
4248
4351
|
Style/SpecialGlobalVars:
|
@@ -4286,6 +4389,7 @@ Style/StringConcatenation:
|
|
4286
4389
|
Enabled: true
|
4287
4390
|
Safe: false
|
4288
4391
|
VersionAdded: '0.89'
|
4392
|
+
VersionChanged: '1.6'
|
4289
4393
|
|
4290
4394
|
Style/StringHashKeys:
|
4291
4395
|
Description: 'Prefer symbols instead of strings as hash keys.'
|
@@ -4324,7 +4428,7 @@ Style/StringMethods:
|
|
4324
4428
|
Description: 'Checks if configured preferred methods are used over non-preferred.'
|
4325
4429
|
Enabled: false
|
4326
4430
|
VersionAdded: '0.34'
|
4327
|
-
VersionChanged: '0.34
|
4431
|
+
VersionChanged: '0.34'
|
4328
4432
|
# Mapping from undesired method to desired_method
|
4329
4433
|
# e.g. to use `to_sym` over `intern`:
|
4330
4434
|
#
|
@@ -4375,7 +4479,7 @@ Style/SymbolProc:
|
|
4375
4479
|
Enabled: true
|
4376
4480
|
Safe: false
|
4377
4481
|
VersionAdded: '0.26'
|
4378
|
-
VersionChanged: '
|
4482
|
+
VersionChanged: '1.5'
|
4379
4483
|
# A list of method names to be ignored by the check.
|
4380
4484
|
# The names should be fairly unique, otherwise you'll end up ignoring lots of code.
|
4381
4485
|
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.9
|
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-28 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.7.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: 1.
|
26
|
+
version: 1.7.0
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- oss@chef.io
|