chefstyle 2.0.9 → 2.1.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 +4 -4
- data/config/chefstyle.yml +4 -0
- data/config/disable_all.yml +21 -1
- data/config/upstream.yml +105 -19
- 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: df3b49ba17acc295d60953cd43b69b3b5cd532e0383b3cd773ace5621c3c65a1
|
|
4
|
+
data.tar.gz: 4292c12460e36e39db5ad65c7328b0de6e033bf7e7d4827eb3bbd8d50f01233c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36bb76c00546710ecdeaed0e72e92fa70f74ff9d937f2a05429a463f8f0ec46999107deeb1a64756805c5a635ff0a3a57668a135fde232617cd59f3e8aece6a8
|
|
7
|
+
data.tar.gz: 65635fd00bba510579420a3d44d17b1925174da919e211bc32749794280cc6ddfe895d510ce6fb321192d68735b86c28f0d5376f7e1eae8667acc76ad61c1164
|
data/config/chefstyle.yml
CHANGED
data/config/disable_all.yml
CHANGED
|
@@ -19,6 +19,8 @@ Gemspec/DuplicatedAssignment:
|
|
|
19
19
|
Enabled: false
|
|
20
20
|
Gemspec/OrderedDependencies:
|
|
21
21
|
Enabled: false
|
|
22
|
+
Gemspec/RequireMFA:
|
|
23
|
+
Enabled: false
|
|
22
24
|
Gemspec/RequiredRubyVersion:
|
|
23
25
|
Enabled: false
|
|
24
26
|
Gemspec/RubyVersionGlobalsUsage:
|
|
@@ -221,6 +223,8 @@ Lint/AmbiguousBlockAssociation:
|
|
|
221
223
|
Enabled: false
|
|
222
224
|
Lint/AmbiguousOperator:
|
|
223
225
|
Enabled: false
|
|
226
|
+
Lint/AmbiguousOperatorPrecedence:
|
|
227
|
+
Enabled: false
|
|
224
228
|
Lint/AmbiguousRange:
|
|
225
229
|
Enabled: false
|
|
226
230
|
Lint/AmbiguousRegexpLiteral:
|
|
@@ -307,10 +311,12 @@ Lint/IdentityComparison:
|
|
|
307
311
|
Enabled: false
|
|
308
312
|
Lint/ImplicitStringConcatenation:
|
|
309
313
|
Enabled: false
|
|
310
|
-
Lint/
|
|
314
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
311
315
|
Enabled: false
|
|
312
316
|
Lint/IneffectiveAccessModifier:
|
|
313
317
|
Enabled: false
|
|
318
|
+
Lint/InheritException:
|
|
319
|
+
Enabled: false
|
|
314
320
|
Lint/InterpolationCheck:
|
|
315
321
|
Enabled: false
|
|
316
322
|
Lint/LambdaWithoutLiteralBlock:
|
|
@@ -383,6 +389,8 @@ Lint/RegexpAsCondition:
|
|
|
383
389
|
Enabled: false
|
|
384
390
|
Lint/RequireParentheses:
|
|
385
391
|
Enabled: false
|
|
392
|
+
Lint/RequireRelativeSelfPath:
|
|
393
|
+
Enabled: false
|
|
386
394
|
Lint/RescueException:
|
|
387
395
|
Enabled: false
|
|
388
396
|
Lint/RescueType:
|
|
@@ -453,6 +461,8 @@ Lint/UselessElseWithoutRescue:
|
|
|
453
461
|
Enabled: false
|
|
454
462
|
Lint/UselessMethodDefinition:
|
|
455
463
|
Enabled: false
|
|
464
|
+
Lint/UselessRuby2Keywords:
|
|
465
|
+
Enabled: false
|
|
456
466
|
Lint/UselessSetterCall:
|
|
457
467
|
Enabled: false
|
|
458
468
|
Lint/UselessTimes:
|
|
@@ -701,6 +711,10 @@ Style/MethodCallWithArgsParentheses:
|
|
|
701
711
|
Enabled: false
|
|
702
712
|
Style/MultilineInPatternThen:
|
|
703
713
|
Enabled: false
|
|
714
|
+
Style/NumberedParameters:
|
|
715
|
+
Enabled: false
|
|
716
|
+
Style/OpenStructUse:
|
|
717
|
+
Enabled: false
|
|
704
718
|
Style/RedundantAssignment:
|
|
705
719
|
Enabled: false
|
|
706
720
|
Style/RedundantFetchBlock:
|
|
@@ -773,6 +787,8 @@ Style/NonNilCheck:
|
|
|
773
787
|
Enabled: false
|
|
774
788
|
Style/Not:
|
|
775
789
|
Enabled: false
|
|
790
|
+
Style/NumberedParametersLimit:
|
|
791
|
+
Enabled: false
|
|
776
792
|
Style/NumericLiterals:
|
|
777
793
|
Enabled: false
|
|
778
794
|
Style/NumericLiteralPrefix:
|
|
@@ -853,6 +869,8 @@ Style/SafeNavigation:
|
|
|
853
869
|
Enabled: false
|
|
854
870
|
Style/Sample:
|
|
855
871
|
Enabled: false
|
|
872
|
+
Style/SelectByRegexp:
|
|
873
|
+
Enabled: false
|
|
856
874
|
Style/SelfAssignment:
|
|
857
875
|
Enabled: false
|
|
858
876
|
Style/Semicolon:
|
|
@@ -945,6 +963,8 @@ Style/ZeroLengthPredicate:
|
|
|
945
963
|
Enabled: false
|
|
946
964
|
Security/Eval:
|
|
947
965
|
Enabled: false
|
|
966
|
+
Security/IoMethods:
|
|
967
|
+
Enabled: false
|
|
948
968
|
Security/JSONLoad:
|
|
949
969
|
Enabled: false
|
|
950
970
|
Security/MarshalLoad:
|
data/config/upstream.yml
CHANGED
|
@@ -130,7 +130,7 @@ AllCops:
|
|
|
130
130
|
# What MRI version of the Ruby interpreter is the inspected code intended to
|
|
131
131
|
# run on? (If there is more than one, set this to the lowest version.)
|
|
132
132
|
# If a value is specified for TargetRubyVersion then it is used. Acceptable
|
|
133
|
-
# values are
|
|
133
|
+
# values are specified as a float (i.e. 3.0); the teeny version of Ruby
|
|
134
134
|
# should not be included. If the project specifies a Ruby version in the
|
|
135
135
|
# .tool-versions or .ruby-version files, Gemfile or gems.rb file, RuboCop will
|
|
136
136
|
# try to determine the desired version of Ruby by inspecting the
|
|
@@ -150,6 +150,7 @@ AllCops:
|
|
|
150
150
|
rubocop-minitest: [minitest]
|
|
151
151
|
rubocop-sequel: [sequel]
|
|
152
152
|
rubocop-rake: [rake]
|
|
153
|
+
rubocop-graphql: [graphql]
|
|
153
154
|
|
|
154
155
|
#################### Bundler ###############################
|
|
155
156
|
|
|
@@ -209,6 +210,7 @@ Bundler/InsecureProtocolSource:
|
|
|
209
210
|
'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
|
|
210
211
|
Enabled: true
|
|
211
212
|
VersionAdded: '0.50'
|
|
213
|
+
AllowHttpProtocol: true
|
|
212
214
|
Include:
|
|
213
215
|
- '**/*.gemfile'
|
|
214
216
|
- '**/Gemfile'
|
|
@@ -257,11 +259,20 @@ Gemspec/OrderedDependencies:
|
|
|
257
259
|
Include:
|
|
258
260
|
- '**/*.gemspec'
|
|
259
261
|
|
|
262
|
+
Gemspec/RequireMFA:
|
|
263
|
+
Description: 'Checks that the gemspec has metadata to require MFA from RubyGems.'
|
|
264
|
+
Enabled: pending
|
|
265
|
+
VersionAdded: '1.23'
|
|
266
|
+
Reference:
|
|
267
|
+
- https://guides.rubygems.org/mfa-requirement-opt-in/
|
|
268
|
+
Include:
|
|
269
|
+
- '**/*.gemspec'
|
|
270
|
+
|
|
260
271
|
Gemspec/RequiredRubyVersion:
|
|
261
272
|
Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
|
|
262
273
|
Enabled: true
|
|
263
274
|
VersionAdded: '0.52'
|
|
264
|
-
VersionChanged: '
|
|
275
|
+
VersionChanged: '1.22'
|
|
265
276
|
Include:
|
|
266
277
|
- '**/*.gemspec'
|
|
267
278
|
|
|
@@ -510,13 +521,13 @@ Layout/EmptyLineBetweenDefs:
|
|
|
510
521
|
StyleGuide: '#empty-lines-between-methods'
|
|
511
522
|
Enabled: true
|
|
512
523
|
VersionAdded: '0.49'
|
|
513
|
-
VersionChanged: '1.
|
|
524
|
+
VersionChanged: '1.23'
|
|
514
525
|
EmptyLineBetweenMethodDefs: true
|
|
515
526
|
EmptyLineBetweenClassDefs: true
|
|
516
527
|
EmptyLineBetweenModuleDefs: true
|
|
517
|
-
#
|
|
518
|
-
# need an empty line between them.
|
|
519
|
-
AllowAdjacentOneLineDefs:
|
|
528
|
+
# `AllowAdjacentOneLineDefs` means that single line method definitions don't
|
|
529
|
+
# need an empty line between them. `true` by default.
|
|
530
|
+
AllowAdjacentOneLineDefs: true
|
|
520
531
|
# Can be array to specify minimum and maximum number of empty lines, e.g. [1, 2]
|
|
521
532
|
NumberOfEmptyLines: 1
|
|
522
533
|
|
|
@@ -957,7 +968,6 @@ Layout/LineLength:
|
|
|
957
968
|
Enabled: true
|
|
958
969
|
VersionAdded: '0.25'
|
|
959
970
|
VersionChanged: '1.4'
|
|
960
|
-
AutoCorrect: true
|
|
961
971
|
Max: 120
|
|
962
972
|
# To make it possible to copy or click on URIs in the code, we allow lines
|
|
963
973
|
# containing a URI to be longer than Max.
|
|
@@ -1361,10 +1371,11 @@ Layout/SpaceInsideParens:
|
|
|
1361
1371
|
StyleGuide: '#spaces-braces'
|
|
1362
1372
|
Enabled: true
|
|
1363
1373
|
VersionAdded: '0.49'
|
|
1364
|
-
VersionChanged: '
|
|
1374
|
+
VersionChanged: '1.22'
|
|
1365
1375
|
EnforcedStyle: no_space
|
|
1366
1376
|
SupportedStyles:
|
|
1367
1377
|
- space
|
|
1378
|
+
- compact
|
|
1368
1379
|
- no_space
|
|
1369
1380
|
|
|
1370
1381
|
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
@@ -1448,6 +1459,13 @@ Lint/AmbiguousOperator:
|
|
|
1448
1459
|
VersionAdded: '0.17'
|
|
1449
1460
|
VersionChanged: '0.83'
|
|
1450
1461
|
|
|
1462
|
+
Lint/AmbiguousOperatorPrecedence:
|
|
1463
|
+
Description: >-
|
|
1464
|
+
Checks for expressions containing multiple binary operations with
|
|
1465
|
+
ambiguous precedence.
|
|
1466
|
+
Enabled: pending
|
|
1467
|
+
VersionAdded: '1.21'
|
|
1468
|
+
|
|
1451
1469
|
Lint/AmbiguousRange:
|
|
1452
1470
|
Description: Checks for ranges with ambiguous boundaries.
|
|
1453
1471
|
Enabled: pending
|
|
@@ -1485,9 +1503,9 @@ Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
1485
1503
|
Lint/BooleanSymbol:
|
|
1486
1504
|
Description: 'Check for `:true` and `:false` symbols.'
|
|
1487
1505
|
Enabled: true
|
|
1488
|
-
|
|
1506
|
+
SafeAutoCorrect: false
|
|
1489
1507
|
VersionAdded: '0.50'
|
|
1490
|
-
VersionChanged: '
|
|
1508
|
+
VersionChanged: '1.22'
|
|
1491
1509
|
|
|
1492
1510
|
Lint/CircularArgumentReference:
|
|
1493
1511
|
Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
|
|
@@ -1560,6 +1578,7 @@ Lint/DeprecatedConstants:
|
|
|
1560
1578
|
Description: 'Checks for deprecated constants.'
|
|
1561
1579
|
Enabled: pending
|
|
1562
1580
|
VersionAdded: '1.8'
|
|
1581
|
+
VersionChanged: '1.22'
|
|
1563
1582
|
# You can configure deprecated constants.
|
|
1564
1583
|
# If there is an alternative method, you can set alternative value as `Alternative`.
|
|
1565
1584
|
# And you can set the deprecated version as `DeprecatedVersion`.
|
|
@@ -1580,6 +1599,9 @@ Lint/DeprecatedConstants:
|
|
|
1580
1599
|
'FALSE':
|
|
1581
1600
|
Alternative: 'false'
|
|
1582
1601
|
DeprecatedVersion: '2.4'
|
|
1602
|
+
'Net::HTTPServerException':
|
|
1603
|
+
Alternative: 'Net::HTTPClientException'
|
|
1604
|
+
DeprecatedVersion: '2.6'
|
|
1583
1605
|
'Random::DEFAULT':
|
|
1584
1606
|
Alternative: 'Random.new'
|
|
1585
1607
|
DeprecatedVersion: '3.0'
|
|
@@ -1771,6 +1793,11 @@ Lint/ImplicitStringConcatenation:
|
|
|
1771
1793
|
Enabled: true
|
|
1772
1794
|
VersionAdded: '0.36'
|
|
1773
1795
|
|
|
1796
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
1797
|
+
Description: 'Checks for `IO.select` that is incompatible with Fiber Scheduler.'
|
|
1798
|
+
Enabled: pending
|
|
1799
|
+
VersionAdded: '1.21'
|
|
1800
|
+
|
|
1774
1801
|
Lint/IneffectiveAccessModifier:
|
|
1775
1802
|
Description: >-
|
|
1776
1803
|
Checks for attempts to use `private` or `protected` to set
|
|
@@ -2034,6 +2061,11 @@ Lint/RequireParentheses:
|
|
|
2034
2061
|
Enabled: true
|
|
2035
2062
|
VersionAdded: '0.18'
|
|
2036
2063
|
|
|
2064
|
+
Lint/RequireRelativeSelfPath:
|
|
2065
|
+
Description: 'Checks for uses a file requiring itself with `require_relative`.'
|
|
2066
|
+
Enabled: pending
|
|
2067
|
+
VersionAdded: '1.22'
|
|
2068
|
+
|
|
2037
2069
|
Lint/RescueException:
|
|
2038
2070
|
Description: 'Avoid rescuing the Exception class.'
|
|
2039
2071
|
StyleGuide: '#no-blind-rescues'
|
|
@@ -2286,6 +2318,11 @@ Lint/UselessMethodDefinition:
|
|
|
2286
2318
|
Safe: false
|
|
2287
2319
|
AllowComments: true
|
|
2288
2320
|
|
|
2321
|
+
Lint/UselessRuby2Keywords:
|
|
2322
|
+
Description: 'Finds unnecessary uses of `ruby2_keywords`.'
|
|
2323
|
+
Enabled: pending
|
|
2324
|
+
VersionAdded: '1.23'
|
|
2325
|
+
|
|
2289
2326
|
Lint/UselessSetterCall:
|
|
2290
2327
|
Description: 'Checks for useless setter call to a local variable.'
|
|
2291
2328
|
Enabled: true
|
|
@@ -2479,6 +2516,7 @@ Naming/FileName:
|
|
|
2479
2516
|
StyleGuide: '#snake-case-files'
|
|
2480
2517
|
Enabled: true
|
|
2481
2518
|
VersionAdded: '0.50'
|
|
2519
|
+
VersionChanged: '1.23'
|
|
2482
2520
|
# Camel case file names listed in `AllCops:Include` and all file names listed
|
|
2483
2521
|
# in `AllCops:Exclude` are excluded by default. Add extra excludes here.
|
|
2484
2522
|
Exclude: []
|
|
@@ -2491,6 +2529,13 @@ Naming/FileName:
|
|
|
2491
2529
|
# whether each source file's class or module name matches the file name --
|
|
2492
2530
|
# not whether the nested module hierarchy matches the subdirectory path.
|
|
2493
2531
|
CheckDefinitionPathHierarchy: true
|
|
2532
|
+
# paths that are considered root directories, for example "lib" in most ruby projects
|
|
2533
|
+
# or "app/models" in rails projects
|
|
2534
|
+
CheckDefinitionPathHierarchyRoots:
|
|
2535
|
+
- lib
|
|
2536
|
+
- spec
|
|
2537
|
+
- test
|
|
2538
|
+
- src
|
|
2494
2539
|
# If non-`nil`, expect all source file names to match the following regex.
|
|
2495
2540
|
# Only the file name itself is matched, not the entire file path.
|
|
2496
2541
|
# Use anchors as necessary if you want to match the entire name rather than
|
|
@@ -2563,8 +2608,9 @@ Naming/HeredocDelimiterNaming:
|
|
|
2563
2608
|
|
|
2564
2609
|
Naming/InclusiveLanguage:
|
|
2565
2610
|
Description: 'Recommend the use of inclusive language instead of problematic terms.'
|
|
2566
|
-
Enabled:
|
|
2611
|
+
Enabled: false
|
|
2567
2612
|
VersionAdded: '1.18'
|
|
2613
|
+
VersionChanged: '1.21'
|
|
2568
2614
|
CheckIdentifiers: true
|
|
2569
2615
|
CheckConstants: true
|
|
2570
2616
|
CheckVariables: true
|
|
@@ -2720,6 +2766,14 @@ Security/Eval:
|
|
|
2720
2766
|
Enabled: true
|
|
2721
2767
|
VersionAdded: '0.47'
|
|
2722
2768
|
|
|
2769
|
+
Security/IoMethods:
|
|
2770
|
+
Description: >-
|
|
2771
|
+
Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`,
|
|
2772
|
+
`IO.foreach`, and `IO.readlines`.
|
|
2773
|
+
Enabled: pending
|
|
2774
|
+
Safe: false
|
|
2775
|
+
VersionAdded: '1.22'
|
|
2776
|
+
|
|
2723
2777
|
Security/JSONLoad:
|
|
2724
2778
|
Description: >-
|
|
2725
2779
|
Prefer usage of `JSON.parse` over `JSON.load` due to potential
|
|
@@ -2727,10 +2781,9 @@ Security/JSONLoad:
|
|
|
2727
2781
|
Reference: 'https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load'
|
|
2728
2782
|
Enabled: true
|
|
2729
2783
|
VersionAdded: '0.43'
|
|
2730
|
-
VersionChanged: '
|
|
2784
|
+
VersionChanged: '1.22'
|
|
2731
2785
|
# Autocorrect here will change to a method that may cause crashes depending
|
|
2732
2786
|
# on the value of the argument.
|
|
2733
|
-
AutoCorrect: false
|
|
2734
2787
|
SafeAutoCorrect: false
|
|
2735
2788
|
|
|
2736
2789
|
Security/MarshalLoad:
|
|
@@ -2796,8 +2849,9 @@ Style/AndOr:
|
|
|
2796
2849
|
Description: 'Use &&/|| instead of and/or.'
|
|
2797
2850
|
StyleGuide: '#no-and-or-or'
|
|
2798
2851
|
Enabled: true
|
|
2852
|
+
SafeAutoCorrect: false
|
|
2799
2853
|
VersionAdded: '0.9'
|
|
2800
|
-
VersionChanged: '
|
|
2854
|
+
VersionChanged: '1.21'
|
|
2801
2855
|
# Whether `and` and `or` are banned only in conditionals (conditionals)
|
|
2802
2856
|
# or completely (always).
|
|
2803
2857
|
EnforcedStyle: conditionals
|
|
@@ -2831,9 +2885,9 @@ Style/ArrayJoin:
|
|
|
2831
2885
|
Style/AsciiComments:
|
|
2832
2886
|
Description: 'Use only ascii symbols in comments.'
|
|
2833
2887
|
StyleGuide: '#english-comments'
|
|
2834
|
-
Enabled:
|
|
2888
|
+
Enabled: false
|
|
2835
2889
|
VersionAdded: '0.9'
|
|
2836
|
-
VersionChanged: '
|
|
2890
|
+
VersionChanged: '1.21'
|
|
2837
2891
|
AllowedChars:
|
|
2838
2892
|
- ©
|
|
2839
2893
|
|
|
@@ -2995,7 +3049,7 @@ Style/CaseEquality:
|
|
|
2995
3049
|
Enabled: true
|
|
2996
3050
|
VersionAdded: '0.9'
|
|
2997
3051
|
VersionChanged: '0.89'
|
|
2998
|
-
# If AllowOnConstant is enabled, the cop will ignore violations when the receiver of
|
|
3052
|
+
# If `AllowOnConstant` option is enabled, the cop will ignore violations when the receiver of
|
|
2999
3053
|
# the case equality operator is a constant.
|
|
3000
3054
|
#
|
|
3001
3055
|
# # bad
|
|
@@ -3690,7 +3744,7 @@ Style/InPatternThen:
|
|
|
3690
3744
|
Style/InfiniteLoop:
|
|
3691
3745
|
Description: >-
|
|
3692
3746
|
Use Kernel#loop for infinite loops.
|
|
3693
|
-
This cop is unsafe
|
|
3747
|
+
This cop is unsafe if the body may raise a `StopIteration` exception.
|
|
3694
3748
|
Safe: false
|
|
3695
3749
|
StyleGuide: '#infinite-loop'
|
|
3696
3750
|
Enabled: true
|
|
@@ -4116,6 +4170,21 @@ Style/Not:
|
|
|
4116
4170
|
VersionAdded: '0.9'
|
|
4117
4171
|
VersionChanged: '0.20'
|
|
4118
4172
|
|
|
4173
|
+
Style/NumberedParameters:
|
|
4174
|
+
Description: 'Restrict the usage of numbered parameters.'
|
|
4175
|
+
Enabled: pending
|
|
4176
|
+
VersionAdded: '1.22'
|
|
4177
|
+
EnforcedStyle: allow_single_line
|
|
4178
|
+
SupportedStyles:
|
|
4179
|
+
- allow_single_line
|
|
4180
|
+
- disallow
|
|
4181
|
+
|
|
4182
|
+
Style/NumberedParametersLimit:
|
|
4183
|
+
Description: 'Avoid excessive numbered params in a single block.'
|
|
4184
|
+
Enabled: pending
|
|
4185
|
+
VersionAdded: '1.22'
|
|
4186
|
+
Max: 1
|
|
4187
|
+
|
|
4119
4188
|
Style/NumericLiteralPrefix:
|
|
4120
4189
|
Description: 'Use smallcase prefixes for numeric literals.'
|
|
4121
4190
|
StyleGuide: '#numeric-literal-prefixes'
|
|
@@ -4126,7 +4195,6 @@ Style/NumericLiteralPrefix:
|
|
|
4126
4195
|
- zero_with_o
|
|
4127
4196
|
- zero_only
|
|
4128
4197
|
|
|
4129
|
-
|
|
4130
4198
|
Style/NumericLiterals:
|
|
4131
4199
|
Description: >-
|
|
4132
4200
|
Add underscores to large numeric literals to improve their
|
|
@@ -4171,6 +4239,16 @@ Style/OneLineConditional:
|
|
|
4171
4239
|
VersionAdded: '0.9'
|
|
4172
4240
|
VersionChanged: '0.90'
|
|
4173
4241
|
|
|
4242
|
+
Style/OpenStructUse:
|
|
4243
|
+
Description: >-
|
|
4244
|
+
Avoid using OpenStruct. As of Ruby 3.0, use is officially discouraged due to performance,
|
|
4245
|
+
version compatibility, and potential security issues.
|
|
4246
|
+
Reference:
|
|
4247
|
+
- https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats
|
|
4248
|
+
|
|
4249
|
+
Enabled: pending
|
|
4250
|
+
VersionAdded: '1.23'
|
|
4251
|
+
|
|
4174
4252
|
Style/OptionHash:
|
|
4175
4253
|
Description: "Don't use option hashes when you can use keyword arguments."
|
|
4176
4254
|
Enabled: false
|
|
@@ -4447,6 +4525,8 @@ Style/RedundantSort:
|
|
|
4447
4525
|
`max_by` instead of `sort_by...last`, etc.
|
|
4448
4526
|
Enabled: true
|
|
4449
4527
|
VersionAdded: '0.76'
|
|
4528
|
+
VersionChanged: '1.22'
|
|
4529
|
+
Safe: false
|
|
4450
4530
|
|
|
4451
4531
|
Style/RedundantSortBy:
|
|
4452
4532
|
Description: 'Use `sort` instead of `sort_by { |x| x }`.'
|
|
@@ -4527,6 +4607,12 @@ Style/Sample:
|
|
|
4527
4607
|
Enabled: true
|
|
4528
4608
|
VersionAdded: '0.30'
|
|
4529
4609
|
|
|
4610
|
+
Style/SelectByRegexp:
|
|
4611
|
+
Description: 'Prefer grep/grep_v to select/reject with a regexp match.'
|
|
4612
|
+
Enabled: pending
|
|
4613
|
+
SafeAutoCorrect: false
|
|
4614
|
+
VersionAdded: '1.22'
|
|
4615
|
+
|
|
4530
4616
|
Style/SelfAssignment:
|
|
4531
4617
|
Description: >-
|
|
4532
4618
|
Checks for places where self-assignment shorthand should have
|
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: 2.
|
|
4
|
+
version: 2.1.3
|
|
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: 2021-
|
|
11
|
+
date: 2021-11-15 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.23.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.23.0
|
|
27
27
|
description:
|
|
28
28
|
email:
|
|
29
29
|
- oss@chef.io
|