chefstyle 1.2.0 → 1.2.1

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: 16247205f8d2e388a3ac7c5a4336c245cc549c15b9398b5386ca99cf05baccfd
4
- data.tar.gz: fd8755fc0d427637a9b1945a335eb3b3469d51d40b998aaf8e97ef872b7207bb
3
+ metadata.gz: e8a5a9a139fa8c13a7ed8661a647267905503b17e62362412af969e40d0df91b
4
+ data.tar.gz: 51ed4bc5b0918b590a16dc9892623385610c5033db3bc1aca87cbe1da30c5c1d
5
5
  SHA512:
6
- metadata.gz: c8e4b623134b357308f474ffcfe4f4ec4aa5b93b05f3a86218f8b824f6c6be31d78470cb89a87735e02744d147ac6d727b21e71183a43a8a24739940e26fa6f1
7
- data.tar.gz: 9118fa2012461bee7207ddd039fb6da69d6a0d85e673ce052a3c76543c38f167e3e8fa0dda142bf8193004be525a87614d17d26dd55d48327eb3555745acd8db
6
+ metadata.gz: c9cbd2f2fe158de67c16ec5932f449fc9e42877ddffe9e4e7f29881c05a645188f197241a930ddd4b51ffd2a75c38a726032a4e98fb22d922f8a755633a294d3
7
+ data.tar.gz: c439d8ae28a519fdd8190a13546db53f820ea46c8bcbd56eb8f676cf6b5f04b485d09a4da9ff52de1f46144aa00a6d0fda2cf60d377300f003a1a079a434d548
@@ -207,6 +207,8 @@ Lint/AssignmentInCondition:
207
207
  Enabled: false
208
208
  Lint/BigDecimalNew:
209
209
  Enabled: false
210
+ Lint/BinaryOperatorWithIdenticalOperands:
211
+ Enabled: false
210
212
  Lint/BooleanSymbol:
211
213
  Enabled: false
212
214
  Lint/CircularArgumentReference:
@@ -229,10 +231,14 @@ Lint/DuplicateHashKey:
229
231
  Enabled: false
230
232
  Lint/DuplicateMethods:
231
233
  Enabled: false
234
+ Lint/DuplicateRescueException:
235
+ Enabled: false
232
236
  Lint/EachWithObjectArgument:
233
237
  Enabled: false
234
238
  Lint/ElseLayout:
235
239
  Enabled: false
240
+ Lint/EmptyConditionalBody:
241
+ Enabled: false
236
242
  Lint/EmptyEnsure:
237
243
  Enabled: false
238
244
  Lint/EmptyExpression:
@@ -247,6 +253,8 @@ Lint/ErbNewArguments:
247
253
  Enabled: false
248
254
  Lint/FlipFlop:
249
255
  Enabled: false
256
+ Lint/FloatComparison:
257
+ Enabled: false
250
258
  Lint/FloatOutOfRange:
251
259
  Enabled: false
252
260
  Lint/FormatParameterMismatch:
@@ -269,6 +277,8 @@ Lint/Loop:
269
277
  Enabled: false
270
278
  Lint/MissingCopEnableDirective:
271
279
  Enabled: false
280
+ Lint/MissingSuper:
281
+ Enabled: false
272
282
  Lint/MixedRegexpCaptureTypes:
273
283
  Enabled: false
274
284
  Lint/MultipleComparison:
@@ -287,6 +297,8 @@ Lint/NumberConversion:
287
297
  Enabled: false
288
298
  Lint/OrderedMagicComments:
289
299
  Enabled: false
300
+ Lint/OutOfRangeRegexpRef:
301
+ Enabled: false
290
302
  Lint/ParenthesesAsGroupedExpression:
291
303
  Enabled: false
292
304
  Lint/PercentStringArray:
@@ -329,6 +341,8 @@ Lint/SafeNavigationWithEmpty:
329
341
  Enabled: false
330
342
  Lint/ScriptPermission:
331
343
  Enabled: false
344
+ Lint/SelfAssignment:
345
+ Enabled: false
332
346
  Lint/SendWithMixinArgument:
333
347
  Enabled: false
334
348
  Lint/ShadowedArgument:
@@ -345,12 +359,16 @@ Lint/Syntax:
345
359
  Enabled: false
346
360
  Lint/ToJSON:
347
361
  Enabled: false
362
+ Lint/TopLevelReturnWithArgument:
363
+ Enabled: false
348
364
  Lint/UnderscorePrefixedVariableName:
349
365
  Enabled: false
350
366
  Lint/UnifiedInteger:
351
367
  Enabled: false
352
368
  Lint/UnreachableCode:
353
369
  Enabled: false
370
+ Lint/UnreachableLoop:
371
+ Enabled: false
354
372
  Lint/UnusedBlockArgument:
355
373
  Enabled: false
356
374
  Lint/UnusedMethodArgument:
@@ -363,8 +381,6 @@ Lint/UselessAccessModifier:
363
381
  Enabled: false
364
382
  Lint/UselessAssignment:
365
383
  Enabled: false
366
- Lint/UselessComparison:
367
- Enabled: false
368
384
  Lint/UselessElseWithoutRescue:
369
385
  Enabled: false
370
386
  Lint/UselessSetterCall:
@@ -523,6 +539,8 @@ Style/EvenOdd:
523
539
  Enabled: false
524
540
  Style/ExpandPathArguments:
525
541
  Enabled: false
542
+ Style/ExplicitBlockArgument:
543
+ Enabled: false
526
544
  Style/ExponentialNotation:
527
545
  Enabled: false
528
546
  Style/FloatDivision:
@@ -535,6 +553,8 @@ Style/FormatStringToken:
535
553
  Enabled: false
536
554
  Style/FrozenStringLiteralComment:
537
555
  Enabled: false
556
+ Style/GlobalStdStream:
557
+ Enabled: false
538
558
  Style/GlobalVars:
539
559
  Enabled: false
540
560
  Style/GuardClause:
@@ -591,8 +611,6 @@ Style/MethodCalledOnDoEndBlock:
591
611
  Enabled: false
592
612
  Style/MethodDefParentheses:
593
613
  Enabled: false
594
- Style/MethodMissingSuper:
595
- Enabled: false
596
614
  Style/MinMax:
597
615
  Enabled: false
598
616
  Style/MissingElse:
@@ -657,6 +675,8 @@ Style/OptionHash:
657
675
  Enabled: false
658
676
  Style/OptionalArguments:
659
677
  Enabled: false
678
+ Style/OptionalBooleanParameter:
679
+ Enabled: false
660
680
  Style/ParallelAssignment:
661
681
  Enabled: false
662
682
  Style/ParenthesesAroundCondition:
@@ -725,6 +745,8 @@ Style/Send:
725
745
  Enabled: false
726
746
  Style/SignalException:
727
747
  Enabled: false
748
+ Style/SingleArgumentDig:
749
+ Enabled: false
728
750
  Style/SingleLineBlockParams:
729
751
  Enabled: false
730
752
  Style/SingleLineMethods:
@@ -737,6 +759,8 @@ Style/StabbyLambdaParentheses:
737
759
  Enabled: false
738
760
  Style/StderrPuts:
739
761
  Enabled: false
762
+ Style/StringConcatenation:
763
+ Enabled: false
740
764
  Style/StringHashKeys:
741
765
  Enabled: false
742
766
  Style/StringLiterals:
@@ -210,9 +210,10 @@ Gemspec/OrderedDependencies:
210
210
  - '**/*.gemspec'
211
211
 
212
212
  Gemspec/RequiredRubyVersion:
213
- Description: 'Checks that `required_ruby_version` of gemspec and `TargetRubyVersion` of .rubocop.yml are equal.'
213
+ Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
214
214
  Enabled: true
215
215
  VersionAdded: '0.52'
216
+ VersionChanged: '0.89'
216
217
  Include:
217
218
  - '**/*.gemspec'
218
219
 
@@ -1234,7 +1235,7 @@ Layout/SpaceInsideBlockBraces:
1234
1235
 
1235
1236
  Layout/SpaceInsideHashLiteralBraces:
1236
1237
  Description: "Use spaces inside hash literal braces - or don't."
1237
- StyleGuide: '#spaces-operators'
1238
+ StyleGuide: '#spaces-braces'
1238
1239
  Enabled: true
1239
1240
  VersionAdded: '0.49'
1240
1241
  EnforcedStyle: space
@@ -1355,6 +1356,12 @@ Lint/BigDecimalNew:
1355
1356
  Enabled: true
1356
1357
  VersionAdded: '0.53'
1357
1358
 
1359
+ Lint/BinaryOperatorWithIdenticalOperands:
1360
+ Description: 'This cop checks for places where binary operator has identical operands.'
1361
+ Enabled: pending
1362
+ Safe: false
1363
+ VersionAdded: '0.89'
1364
+
1358
1365
  Lint/BooleanSymbol:
1359
1366
  Description: 'Check for `:true` and `:false` symbols.'
1360
1367
  Enabled: true
@@ -1420,6 +1427,11 @@ Lint/DuplicateMethods:
1420
1427
  Enabled: true
1421
1428
  VersionAdded: '0.29'
1422
1429
 
1430
+ Lint/DuplicateRescueException:
1431
+ Description: 'Checks that there are no repeated exceptions used in `rescue` expressions.'
1432
+ Enabled: pending
1433
+ VersionAdded: '0.89'
1434
+
1423
1435
  Lint/EachWithObjectArgument:
1424
1436
  Description: 'Check for immutable argument given to each_with_object.'
1425
1437
  Enabled: true
@@ -1430,6 +1442,12 @@ Lint/ElseLayout:
1430
1442
  Enabled: true
1431
1443
  VersionAdded: '0.17'
1432
1444
 
1445
+ Lint/EmptyConditionalBody:
1446
+ Description: 'This cop checks for the presence of `if`, `elsif` and `unless` branches without a body.'
1447
+ Enabled: 'pending'
1448
+ AllowComments: true
1449
+ VersionAdded: '0.89'
1450
+
1433
1451
  Lint/EmptyEnsure:
1434
1452
  Description: 'Checks for empty ensure block.'
1435
1453
  Enabled: true
@@ -1473,6 +1491,12 @@ Lint/FlipFlop:
1473
1491
  Enabled: true
1474
1492
  VersionAdded: '0.16'
1475
1493
 
1494
+ Lint/FloatComparison:
1495
+ Description: 'Checks for the presence of precise comparison of floating point numbers.'
1496
+ StyleGuide: '#float-comparison'
1497
+ Enabled: pending
1498
+ VersionAdded: '0.89'
1499
+
1476
1500
  Lint/FloatOutOfRange:
1477
1501
  Description: >-
1478
1502
  Catches floating-point literals too large or small for Ruby to
@@ -1520,7 +1544,7 @@ Lint/InheritException:
1520
1544
  Lint/InterpolationCheck:
1521
1545
  Description: 'Raise warning for interpolation in single q strs.'
1522
1546
  Enabled: true
1523
- SafeAutoCorrect: false
1547
+ Safe: false
1524
1548
  VersionAdded: '0.50'
1525
1549
  VersionChanged: '0.87'
1526
1550
 
@@ -1542,6 +1566,7 @@ Lint/Loop:
1542
1566
  StyleGuide: '#loop-with-break'
1543
1567
  Enabled: true
1544
1568
  VersionAdded: '0.9'
1569
+ VersionChanged: '0.89'
1545
1570
 
1546
1571
  Lint/MissingCopEnableDirective:
1547
1572
  Description: 'Checks for a `# rubocop:enable` after `# rubocop:disable`.'
@@ -1556,6 +1581,13 @@ Lint/MissingCopEnableDirective:
1556
1581
  # .inf for any size
1557
1582
  MaximumRangeSize: .inf
1558
1583
 
1584
+ Lint/MissingSuper:
1585
+ Description: >-
1586
+ This cop checks for the presence of constructors and lifecycle callbacks
1587
+ without calls to `super`'.
1588
+ Enabled: pending
1589
+ VersionAdded: '0.89'
1590
+
1559
1591
  Lint/MixedRegexpCaptureTypes:
1560
1592
  Description: 'Do not mix named captures and numbered captures in a Regexp literal.'
1561
1593
  Enabled: pending
@@ -1608,6 +1640,12 @@ Lint/OrderedMagicComments:
1608
1640
  Enabled: true
1609
1641
  VersionAdded: '0.53'
1610
1642
 
1643
+ Lint/OutOfRangeRegexpRef:
1644
+ Description: 'Checks for out of range reference for Regexp because it always returns nil.'
1645
+ Enabled: pending
1646
+ Safe: false
1647
+ VersionAdded: '0.89'
1648
+
1611
1649
  Lint/ParenthesesAsGroupedExpression:
1612
1650
  Description: >-
1613
1651
  Checks for method calls with a space before the opening
@@ -1758,6 +1796,11 @@ Lint/ScriptPermission:
1758
1796
  VersionAdded: '0.49'
1759
1797
  VersionChanged: '0.50'
1760
1798
 
1799
+ Lint/SelfAssignment:
1800
+ Description: 'Checks for self-assignments.'
1801
+ Enabled: pending
1802
+ VersionAdded: '0.89'
1803
+
1761
1804
  Lint/SendWithMixinArgument:
1762
1805
  Description: 'Checks for `send` method when using mixin.'
1763
1806
  Enabled: true
@@ -1808,6 +1851,11 @@ Lint/ToJSON:
1808
1851
  Enabled: true
1809
1852
  VersionAdded: '0.66'
1810
1853
 
1854
+ Lint/TopLevelReturnWithArgument:
1855
+ Description: 'This cop detects top level return statements with argument.'
1856
+ Enabled: 'pending'
1857
+ VersionAdded: '0.89'
1858
+
1811
1859
  Lint/UnderscorePrefixedVariableName:
1812
1860
  Description: 'Do not use prefix `_` for a variable that is used.'
1813
1861
  Enabled: true
@@ -1824,6 +1872,11 @@ Lint/UnreachableCode:
1824
1872
  Enabled: true
1825
1873
  VersionAdded: '0.9'
1826
1874
 
1875
+ Lint/UnreachableLoop:
1876
+ Description: 'This cop checks for loops that will have at most one iteration.'
1877
+ Enabled: pending
1878
+ VersionAdded: '0.89'
1879
+
1827
1880
  Lint/UnusedBlockArgument:
1828
1881
  Description: 'Checks for unused block arguments.'
1829
1882
  StyleGuide: '#underscore-unused-vars'
@@ -1873,11 +1926,6 @@ Lint/UselessAssignment:
1873
1926
  Enabled: true
1874
1927
  VersionAdded: '0.11'
1875
1928
 
1876
- Lint/UselessComparison:
1877
- Description: 'Checks for comparison of something with itself.'
1878
- Enabled: true
1879
- VersionAdded: '0.11'
1880
-
1881
1929
  Lint/UselessElseWithoutRescue:
1882
1930
  Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
1883
1931
  Enabled: true
@@ -1911,7 +1959,7 @@ Metrics/AbcSize:
1911
1959
  # The ABC size is a calculated magnitude, so this number can be an Integer or
1912
1960
  # a Float.
1913
1961
  IgnoredMethods: []
1914
- Max: 15
1962
+ Max: 17
1915
1963
 
1916
1964
  Metrics/BlockLength:
1917
1965
  Description: 'Avoid long blocks with many lines.'
@@ -1993,7 +2041,7 @@ Metrics/PerceivedComplexity:
1993
2041
  VersionAdded: '0.25'
1994
2042
  VersionChanged: '0.81'
1995
2043
  IgnoredMethods: []
1996
- Max: 7
2044
+ Max: 8
1997
2045
 
1998
2046
  ################## Migration #############################
1999
2047
 
@@ -2352,6 +2400,7 @@ Style/ArrayCoercion:
2352
2400
  Use Array() instead of explicit Array check or [*var], when dealing
2353
2401
  with a variable you want to treat as an Array, but you're not certain it's an array.
2354
2402
  StyleGuide: '#array-coercion'
2403
+ Safe: false
2355
2404
  Enabled: 'pending'
2356
2405
  VersionAdded: '0.88'
2357
2406
 
@@ -2527,6 +2576,7 @@ Style/CaseEquality:
2527
2576
  StyleGuide: '#no-case-equality'
2528
2577
  Enabled: true
2529
2578
  VersionAdded: '0.9'
2579
+ VersionChanged: '0.89'
2530
2580
  # If AllowOnConstant is enabled, the cop will ignore violations when the receiver of
2531
2581
  # the case equality operator is a constant.
2532
2582
  #
@@ -2880,6 +2930,16 @@ Style/ExpandPathArguments:
2880
2930
  Enabled: true
2881
2931
  VersionAdded: '0.53'
2882
2932
 
2933
+ Style/ExplicitBlockArgument:
2934
+ Description: >-
2935
+ Consider using explicit block argument to avoid writing block literal
2936
+ that just passes its arguments to another block.
2937
+ StyleGuide: '#block-argument'
2938
+ Enabled: pending
2939
+ # May change the yielding arity.
2940
+ Safe: false
2941
+ VersionAdded: '0.89'
2942
+
2883
2943
  Style/ExponentialNotation:
2884
2944
  Description: 'When using exponential notation, favor a mantissa between 1 (inclusive) and 10 (exclusive).'
2885
2945
  StyleGuide: '#exponential-notation'
@@ -2963,6 +3023,12 @@ Style/FrozenStringLiteralComment:
2963
3023
  - never
2964
3024
  Safe: false
2965
3025
 
3026
+ Style/GlobalStdStream:
3027
+ Description: 'Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`.'
3028
+ StyleGuide: '#global-stdout'
3029
+ Enabled: pending
3030
+ VersionAdded: '0.89'
3031
+
2966
3032
  Style/GlobalVars:
2967
3033
  Description: 'Do not introduce global variables.'
2968
3034
  StyleGuide: '#instance-vars'
@@ -3218,12 +3284,6 @@ Style/MethodDefParentheses:
3218
3284
  - require_no_parentheses
3219
3285
  - require_no_parentheses_except_multiline
3220
3286
 
3221
- Style/MethodMissingSuper:
3222
- Description: Checks for `method_missing` to call `super`.
3223
- StyleGuide: '#no-method-missing'
3224
- Enabled: true
3225
- VersionAdded: '0.56'
3226
-
3227
3287
  Style/MinMax:
3228
3288
  Description: >-
3229
3289
  Use `Enumerable#minmax` instead of `Enumerable#min`
@@ -3565,6 +3625,13 @@ Style/OptionalArguments:
3565
3625
  VersionAdded: '0.33'
3566
3626
  VersionChanged: '0.83'
3567
3627
 
3628
+ Style/OptionalBooleanParameter:
3629
+ Description: 'Use keyword arguments when defining method with boolean argument.'
3630
+ StyleGuide: '#boolean-keyword-arguments'
3631
+ Enabled: pending
3632
+ Safe: false
3633
+ VersionAdded: '0.89'
3634
+
3568
3635
  Style/OrAssignment:
3569
3636
  Description: 'Recommend usage of double pipe equals (||=) where applicable.'
3570
3637
  StyleGuide: '#double-pipe-for-uninit'
@@ -3883,6 +3950,12 @@ Style/SignalException:
3883
3950
  - only_fail
3884
3951
  - semantic
3885
3952
 
3953
+ Style/SingleArgumentDig:
3954
+ Description: 'Avoid using single argument dig method.'
3955
+ Enabled: pending
3956
+ VersionAdded: '0.89'
3957
+ Safe: false
3958
+
3886
3959
  Style/SingleLineBlockParams:
3887
3960
  Description: 'Enforces the names of some block params.'
3888
3961
  Enabled: false
@@ -3938,6 +4011,13 @@ Style/StderrPuts:
3938
4011
  Enabled: true
3939
4012
  VersionAdded: '0.51'
3940
4013
 
4014
+ Style/StringConcatenation:
4015
+ Description: 'Checks for places where string concatenation can be replaced with string interpolation.'
4016
+ StyleGuide: '#string-interpolation'
4017
+ Enabled: pending
4018
+ Safe: false
4019
+ VersionAdded: '0.89'
4020
+
3941
4021
  Style/StringHashKeys:
3942
4022
  Description: 'Prefer symbols instead of strings as hash keys.'
3943
4023
  StyleGuide: '#symbols-as-keys'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Chefstyle
3
- VERSION = "1.2.0"
4
- RUBOCOP_VERSION = "0.88.0"
3
+ VERSION = "1.2.1"
4
+ RUBOCOP_VERSION = "0.89.1"
5
5
  end
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.2.0
4
+ version: 1.2.1
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-07-14 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.88.0
61
+ version: 0.89.1
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: 0.88.0
68
+ version: 0.89.1
69
69
  description:
70
70
  email:
71
71
  - oss@chef.io