chefstyle 2.0.7 → 2.1.1
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 +110 -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: 306f81dba30b94e574c6728cf3b91557c3d9c42a1964921214d9ae16f325b2a9
|
|
4
|
+
data.tar.gz: 51311179d38798e6deaf20518fd6505cc24b7d9fa6c574acc2dea6c4e8a802a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c0c77131f1d6627566260c48a22ccc533d4dbff4f6e18952cc20ee2eaca3b6d83e5e7d3b62f6e804a3316e80472aec4df457cb4829237024f7bfb4d47b39668
|
|
7
|
+
data.tar.gz: 4905a3ac41c6ddb28692aa42eba23d0fb887a627d6daa93486d39d48d928f921db1213ebbc95d79309049732d7f1e41d830d9a1e43049000d396248e199cfb5a
|
data/config/chefstyle.yml
CHANGED
data/config/disable_all.yml
CHANGED
|
@@ -5,6 +5,8 @@ Bundler/DuplicatedGem:
|
|
|
5
5
|
Enabled: false
|
|
6
6
|
Bundler/GemComment:
|
|
7
7
|
Enabled: false
|
|
8
|
+
Bundler/GemFilename:
|
|
9
|
+
Enabled: false
|
|
8
10
|
Bundler/GemVersion:
|
|
9
11
|
Enabled: false
|
|
10
12
|
Bundler/InsecureProtocolSource:
|
|
@@ -219,6 +221,10 @@ Lint/AmbiguousBlockAssociation:
|
|
|
219
221
|
Enabled: false
|
|
220
222
|
Lint/AmbiguousOperator:
|
|
221
223
|
Enabled: false
|
|
224
|
+
Lint/AmbiguousOperatorPrecedence:
|
|
225
|
+
Enabled: false
|
|
226
|
+
Lint/AmbiguousRange:
|
|
227
|
+
Enabled: false
|
|
222
228
|
Lint/AmbiguousRegexpLiteral:
|
|
223
229
|
Enabled: false
|
|
224
230
|
Lint/AssignmentInCondition:
|
|
@@ -303,10 +309,12 @@ Lint/IdentityComparison:
|
|
|
303
309
|
Enabled: false
|
|
304
310
|
Lint/ImplicitStringConcatenation:
|
|
305
311
|
Enabled: false
|
|
306
|
-
Lint/
|
|
312
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
307
313
|
Enabled: false
|
|
308
314
|
Lint/IneffectiveAccessModifier:
|
|
309
315
|
Enabled: false
|
|
316
|
+
Lint/InheritException:
|
|
317
|
+
Enabled: false
|
|
310
318
|
Lint/InterpolationCheck:
|
|
311
319
|
Enabled: false
|
|
312
320
|
Lint/LambdaWithoutLiteralBlock:
|
|
@@ -379,6 +387,8 @@ Lint/RegexpAsCondition:
|
|
|
379
387
|
Enabled: false
|
|
380
388
|
Lint/RequireParentheses:
|
|
381
389
|
Enabled: false
|
|
390
|
+
Lint/RequireRelativeSelfPath:
|
|
391
|
+
Enabled: false
|
|
382
392
|
Lint/RescueException:
|
|
383
393
|
Enabled: false
|
|
384
394
|
Lint/RescueType:
|
|
@@ -697,6 +707,8 @@ Style/MethodCallWithArgsParentheses:
|
|
|
697
707
|
Enabled: false
|
|
698
708
|
Style/MultilineInPatternThen:
|
|
699
709
|
Enabled: false
|
|
710
|
+
Style/NumberedParameters:
|
|
711
|
+
Enabled: false
|
|
700
712
|
Style/RedundantAssignment:
|
|
701
713
|
Enabled: false
|
|
702
714
|
Style/RedundantFetchBlock:
|
|
@@ -705,6 +717,8 @@ Style/RedundantFileExtensionInRequire:
|
|
|
705
717
|
Enabled: false
|
|
706
718
|
Style/RedundantSelfAssignment:
|
|
707
719
|
Enabled: false
|
|
720
|
+
Style/RedundantSelfAssignmentBranch:
|
|
721
|
+
Enabled: false
|
|
708
722
|
Style/SoleNestedConditional:
|
|
709
723
|
Enabled: false
|
|
710
724
|
Style/StaticClass:
|
|
@@ -767,6 +781,8 @@ Style/NonNilCheck:
|
|
|
767
781
|
Enabled: false
|
|
768
782
|
Style/Not:
|
|
769
783
|
Enabled: false
|
|
784
|
+
Style/NumberedParametersLimit:
|
|
785
|
+
Enabled: false
|
|
770
786
|
Style/NumericLiterals:
|
|
771
787
|
Enabled: false
|
|
772
788
|
Style/NumericLiteralPrefix:
|
|
@@ -847,6 +863,8 @@ Style/SafeNavigation:
|
|
|
847
863
|
Enabled: false
|
|
848
864
|
Style/Sample:
|
|
849
865
|
Enabled: false
|
|
866
|
+
Style/SelectByRegexp:
|
|
867
|
+
Enabled: false
|
|
850
868
|
Style/SelfAssignment:
|
|
851
869
|
Enabled: false
|
|
852
870
|
Style/Semicolon:
|
|
@@ -939,6 +957,8 @@ Style/ZeroLengthPredicate:
|
|
|
939
957
|
Enabled: false
|
|
940
958
|
Security/Eval:
|
|
941
959
|
Enabled: false
|
|
960
|
+
Security/IoMethods:
|
|
961
|
+
Enabled: false
|
|
942
962
|
Security/JSONLoad:
|
|
943
963
|
Enabled: false
|
|
944
964
|
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
|
|
@@ -174,6 +174,20 @@ Bundler/GemComment:
|
|
|
174
174
|
IgnoredGems: []
|
|
175
175
|
OnlyFor: []
|
|
176
176
|
|
|
177
|
+
Bundler/GemFilename:
|
|
178
|
+
Description: 'Enforces the filename for managing gems.'
|
|
179
|
+
Enabled: true
|
|
180
|
+
VersionAdded: '1.20'
|
|
181
|
+
EnforcedStyle: 'Gemfile'
|
|
182
|
+
SupportedStyles:
|
|
183
|
+
- 'Gemfile'
|
|
184
|
+
- 'gems.rb'
|
|
185
|
+
Include:
|
|
186
|
+
- '**/Gemfile'
|
|
187
|
+
- '**/gems.rb'
|
|
188
|
+
- '**/Gemfile.lock'
|
|
189
|
+
- '**/gems.locked'
|
|
190
|
+
|
|
177
191
|
Bundler/GemVersion:
|
|
178
192
|
Description: 'Requires or forbids specifying gem versions.'
|
|
179
193
|
Enabled: false
|
|
@@ -195,6 +209,7 @@ Bundler/InsecureProtocolSource:
|
|
|
195
209
|
'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
|
|
196
210
|
Enabled: true
|
|
197
211
|
VersionAdded: '0.50'
|
|
212
|
+
AllowHttpProtocol: true
|
|
198
213
|
Include:
|
|
199
214
|
- '**/*.gemfile'
|
|
200
215
|
- '**/Gemfile'
|
|
@@ -247,7 +262,7 @@ Gemspec/RequiredRubyVersion:
|
|
|
247
262
|
Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
|
|
248
263
|
Enabled: true
|
|
249
264
|
VersionAdded: '0.52'
|
|
250
|
-
VersionChanged: '
|
|
265
|
+
VersionChanged: '1.22'
|
|
251
266
|
Include:
|
|
252
267
|
- '**/*.gemspec'
|
|
253
268
|
|
|
@@ -943,7 +958,6 @@ Layout/LineLength:
|
|
|
943
958
|
Enabled: true
|
|
944
959
|
VersionAdded: '0.25'
|
|
945
960
|
VersionChanged: '1.4'
|
|
946
|
-
AutoCorrect: true
|
|
947
961
|
Max: 120
|
|
948
962
|
# To make it possible to copy or click on URIs in the code, we allow lines
|
|
949
963
|
# containing a URI to be longer than Max.
|
|
@@ -1347,10 +1361,11 @@ Layout/SpaceInsideParens:
|
|
|
1347
1361
|
StyleGuide: '#spaces-braces'
|
|
1348
1362
|
Enabled: true
|
|
1349
1363
|
VersionAdded: '0.49'
|
|
1350
|
-
VersionChanged: '
|
|
1364
|
+
VersionChanged: '1.22'
|
|
1351
1365
|
EnforcedStyle: no_space
|
|
1352
1366
|
SupportedStyles:
|
|
1353
1367
|
- space
|
|
1368
|
+
- compact
|
|
1354
1369
|
- no_space
|
|
1355
1370
|
|
|
1356
1371
|
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
@@ -1434,6 +1449,20 @@ Lint/AmbiguousOperator:
|
|
|
1434
1449
|
VersionAdded: '0.17'
|
|
1435
1450
|
VersionChanged: '0.83'
|
|
1436
1451
|
|
|
1452
|
+
Lint/AmbiguousOperatorPrecedence:
|
|
1453
|
+
Description: >-
|
|
1454
|
+
Checks for expressions containing multiple binary operations with
|
|
1455
|
+
ambiguous precedence.
|
|
1456
|
+
Enabled: pending
|
|
1457
|
+
VersionAdded: '1.21'
|
|
1458
|
+
|
|
1459
|
+
Lint/AmbiguousRange:
|
|
1460
|
+
Description: Checks for ranges with ambiguous boundaries.
|
|
1461
|
+
Enabled: pending
|
|
1462
|
+
VersionAdded: '1.19'
|
|
1463
|
+
SafeAutoCorrect: false
|
|
1464
|
+
RequireParenthesesForMethodChains: false
|
|
1465
|
+
|
|
1437
1466
|
Lint/AmbiguousRegexpLiteral:
|
|
1438
1467
|
Description: >-
|
|
1439
1468
|
Checks for ambiguous regexp literals in the first argument of
|
|
@@ -1464,9 +1493,9 @@ Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
1464
1493
|
Lint/BooleanSymbol:
|
|
1465
1494
|
Description: 'Check for `:true` and `:false` symbols.'
|
|
1466
1495
|
Enabled: true
|
|
1467
|
-
|
|
1496
|
+
SafeAutoCorrect: false
|
|
1468
1497
|
VersionAdded: '0.50'
|
|
1469
|
-
VersionChanged: '
|
|
1498
|
+
VersionChanged: '1.22'
|
|
1470
1499
|
|
|
1471
1500
|
Lint/CircularArgumentReference:
|
|
1472
1501
|
Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
|
|
@@ -1512,6 +1541,11 @@ Lint/Debugger:
|
|
|
1512
1541
|
Capybara:
|
|
1513
1542
|
- save_and_open_page
|
|
1514
1543
|
- save_and_open_screenshot
|
|
1544
|
+
debug.rb:
|
|
1545
|
+
- binding.b
|
|
1546
|
+
- binding.break
|
|
1547
|
+
- Kernel.binding.b
|
|
1548
|
+
- Kernel.binding.break
|
|
1515
1549
|
Pry:
|
|
1516
1550
|
- binding.pry
|
|
1517
1551
|
- binding.remote_pry
|
|
@@ -1520,6 +1554,8 @@ Lint/Debugger:
|
|
|
1520
1554
|
Rails:
|
|
1521
1555
|
- debugger
|
|
1522
1556
|
- Kernel.debugger
|
|
1557
|
+
RubyJard:
|
|
1558
|
+
- jard
|
|
1523
1559
|
WebConsole:
|
|
1524
1560
|
- binding.console
|
|
1525
1561
|
|
|
@@ -1743,6 +1779,11 @@ Lint/ImplicitStringConcatenation:
|
|
|
1743
1779
|
Enabled: true
|
|
1744
1780
|
VersionAdded: '0.36'
|
|
1745
1781
|
|
|
1782
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
1783
|
+
Description: 'Checks for `IO.select` that is incompatible with Fiber Scheduler.'
|
|
1784
|
+
Enabled: pending
|
|
1785
|
+
VersionAdded: '1.21'
|
|
1786
|
+
|
|
1746
1787
|
Lint/IneffectiveAccessModifier:
|
|
1747
1788
|
Description: >-
|
|
1748
1789
|
Checks for attempts to use `private` or `protected` to set
|
|
@@ -1824,7 +1865,6 @@ Lint/MultipleComparison:
|
|
|
1824
1865
|
Enabled: true
|
|
1825
1866
|
VersionAdded: '0.47'
|
|
1826
1867
|
VersionChanged: '1.1'
|
|
1827
|
-
AllowMethodComparison: true
|
|
1828
1868
|
|
|
1829
1869
|
Lint/NestedMethodDefinition:
|
|
1830
1870
|
Description: 'Do not use nested method definitions.'
|
|
@@ -2007,6 +2047,11 @@ Lint/RequireParentheses:
|
|
|
2007
2047
|
Enabled: true
|
|
2008
2048
|
VersionAdded: '0.18'
|
|
2009
2049
|
|
|
2050
|
+
Lint/RequireRelativeSelfPath:
|
|
2051
|
+
Description: 'Checks for uses a file requiring itself with `require_relative`.'
|
|
2052
|
+
Enabled: pending
|
|
2053
|
+
VersionAdded: '1.22'
|
|
2054
|
+
|
|
2010
2055
|
Lint/RescueException:
|
|
2011
2056
|
Description: 'Avoid rescuing the Exception class.'
|
|
2012
2057
|
StyleGuide: '#no-blind-rescues'
|
|
@@ -2536,8 +2581,9 @@ Naming/HeredocDelimiterNaming:
|
|
|
2536
2581
|
|
|
2537
2582
|
Naming/InclusiveLanguage:
|
|
2538
2583
|
Description: 'Recommend the use of inclusive language instead of problematic terms.'
|
|
2539
|
-
Enabled:
|
|
2584
|
+
Enabled: false
|
|
2540
2585
|
VersionAdded: '1.18'
|
|
2586
|
+
VersionChanged: '1.21'
|
|
2541
2587
|
CheckIdentifiers: true
|
|
2542
2588
|
CheckConstants: true
|
|
2543
2589
|
CheckVariables: true
|
|
@@ -2557,6 +2603,7 @@ Naming/InclusiveLanguage:
|
|
|
2557
2603
|
- denylist
|
|
2558
2604
|
- block
|
|
2559
2605
|
slave:
|
|
2606
|
+
WholeWord: true
|
|
2560
2607
|
Suggestions: ['replica', 'secondary', 'follower']
|
|
2561
2608
|
|
|
2562
2609
|
Naming/MemoizedInstanceVariableName:
|
|
@@ -2692,6 +2739,14 @@ Security/Eval:
|
|
|
2692
2739
|
Enabled: true
|
|
2693
2740
|
VersionAdded: '0.47'
|
|
2694
2741
|
|
|
2742
|
+
Security/IoMethods:
|
|
2743
|
+
Description: >-
|
|
2744
|
+
Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`,
|
|
2745
|
+
`IO.foreach`, and `IO.readlines`.
|
|
2746
|
+
Enabled: pending
|
|
2747
|
+
Safe: false
|
|
2748
|
+
VersionAdded: '1.22'
|
|
2749
|
+
|
|
2695
2750
|
Security/JSONLoad:
|
|
2696
2751
|
Description: >-
|
|
2697
2752
|
Prefer usage of `JSON.parse` over `JSON.load` due to potential
|
|
@@ -2699,10 +2754,9 @@ Security/JSONLoad:
|
|
|
2699
2754
|
Reference: 'https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load'
|
|
2700
2755
|
Enabled: true
|
|
2701
2756
|
VersionAdded: '0.43'
|
|
2702
|
-
VersionChanged: '
|
|
2757
|
+
VersionChanged: '1.22'
|
|
2703
2758
|
# Autocorrect here will change to a method that may cause crashes depending
|
|
2704
2759
|
# on the value of the argument.
|
|
2705
|
-
AutoCorrect: false
|
|
2706
2760
|
SafeAutoCorrect: false
|
|
2707
2761
|
|
|
2708
2762
|
Security/MarshalLoad:
|
|
@@ -2768,8 +2822,9 @@ Style/AndOr:
|
|
|
2768
2822
|
Description: 'Use &&/|| instead of and/or.'
|
|
2769
2823
|
StyleGuide: '#no-and-or-or'
|
|
2770
2824
|
Enabled: true
|
|
2825
|
+
SafeAutoCorrect: false
|
|
2771
2826
|
VersionAdded: '0.9'
|
|
2772
|
-
VersionChanged: '
|
|
2827
|
+
VersionChanged: '1.21'
|
|
2773
2828
|
# Whether `and` and `or` are banned only in conditionals (conditionals)
|
|
2774
2829
|
# or completely (always).
|
|
2775
2830
|
EnforcedStyle: conditionals
|
|
@@ -2803,9 +2858,9 @@ Style/ArrayJoin:
|
|
|
2803
2858
|
Style/AsciiComments:
|
|
2804
2859
|
Description: 'Use only ascii symbols in comments.'
|
|
2805
2860
|
StyleGuide: '#english-comments'
|
|
2806
|
-
Enabled:
|
|
2861
|
+
Enabled: false
|
|
2807
2862
|
VersionAdded: '0.9'
|
|
2808
|
-
VersionChanged: '
|
|
2863
|
+
VersionChanged: '1.21'
|
|
2809
2864
|
AllowedChars:
|
|
2810
2865
|
- ©
|
|
2811
2866
|
|
|
@@ -2967,7 +3022,7 @@ Style/CaseEquality:
|
|
|
2967
3022
|
Enabled: true
|
|
2968
3023
|
VersionAdded: '0.9'
|
|
2969
3024
|
VersionChanged: '0.89'
|
|
2970
|
-
# If AllowOnConstant is enabled, the cop will ignore violations when the receiver of
|
|
3025
|
+
# If `AllowOnConstant` option is enabled, the cop will ignore violations when the receiver of
|
|
2971
3026
|
# the case equality operator is a constant.
|
|
2972
3027
|
#
|
|
2973
3028
|
# # bad
|
|
@@ -3142,7 +3197,7 @@ Style/CommentAnnotation:
|
|
|
3142
3197
|
StyleGuide: '#annotate-keywords'
|
|
3143
3198
|
Enabled: true
|
|
3144
3199
|
VersionAdded: '0.10'
|
|
3145
|
-
VersionChanged: '1.
|
|
3200
|
+
VersionChanged: '1.20'
|
|
3146
3201
|
Keywords:
|
|
3147
3202
|
- TODO
|
|
3148
3203
|
- FIXME
|
|
@@ -3155,8 +3210,9 @@ Style/CommentAnnotation:
|
|
|
3155
3210
|
Style/CommentedKeyword:
|
|
3156
3211
|
Description: 'Do not place comments on the same line as certain keywords.'
|
|
3157
3212
|
Enabled: true
|
|
3213
|
+
SafeAutoCorrect: false
|
|
3158
3214
|
VersionAdded: '0.51'
|
|
3159
|
-
VersionChanged: '1.
|
|
3215
|
+
VersionChanged: '1.19'
|
|
3160
3216
|
|
|
3161
3217
|
Style/ConditionalAssignment:
|
|
3162
3218
|
Description: >-
|
|
@@ -3603,8 +3659,9 @@ Style/IdenticalConditionalBranches:
|
|
|
3603
3659
|
line at the end of each branch, which can validly be moved
|
|
3604
3660
|
out of the conditional.
|
|
3605
3661
|
Enabled: true
|
|
3662
|
+
SafeAutoCorrect: false
|
|
3606
3663
|
VersionAdded: '0.36'
|
|
3607
|
-
VersionChanged: '1.
|
|
3664
|
+
VersionChanged: '1.19'
|
|
3608
3665
|
|
|
3609
3666
|
Style/IfInsideElse:
|
|
3610
3667
|
Description: 'Finds if nodes inside else, which can be converted to elsif.'
|
|
@@ -3660,7 +3717,7 @@ Style/InPatternThen:
|
|
|
3660
3717
|
Style/InfiniteLoop:
|
|
3661
3718
|
Description: >-
|
|
3662
3719
|
Use Kernel#loop for infinite loops.
|
|
3663
|
-
This cop is unsafe
|
|
3720
|
+
This cop is unsafe if the body may raise a `StopIteration` exception.
|
|
3664
3721
|
Safe: false
|
|
3665
3722
|
StyleGuide: '#infinite-loop'
|
|
3666
3723
|
Enabled: true
|
|
@@ -3929,6 +3986,7 @@ Style/MultipleComparison:
|
|
|
3929
3986
|
Enabled: true
|
|
3930
3987
|
VersionAdded: '0.49'
|
|
3931
3988
|
VersionChanged: '1.1'
|
|
3989
|
+
AllowMethodComparison: true
|
|
3932
3990
|
|
|
3933
3991
|
Style/MutableConstant:
|
|
3934
3992
|
Description: 'Do not assign mutable objects to constants.'
|
|
@@ -4085,6 +4143,21 @@ Style/Not:
|
|
|
4085
4143
|
VersionAdded: '0.9'
|
|
4086
4144
|
VersionChanged: '0.20'
|
|
4087
4145
|
|
|
4146
|
+
Style/NumberedParameters:
|
|
4147
|
+
Description: 'Restrict the usage of numbered parameters.'
|
|
4148
|
+
Enabled: pending
|
|
4149
|
+
VersionAdded: '1.22'
|
|
4150
|
+
EnforcedStyle: allow_single_line
|
|
4151
|
+
SupportedStyles:
|
|
4152
|
+
- allow_single_line
|
|
4153
|
+
- disallow
|
|
4154
|
+
|
|
4155
|
+
Style/NumberedParametersLimit:
|
|
4156
|
+
Description: 'Avoid excessive numbered params in a single block.'
|
|
4157
|
+
Enabled: pending
|
|
4158
|
+
VersionAdded: '1.22'
|
|
4159
|
+
Max: 1
|
|
4160
|
+
|
|
4088
4161
|
Style/NumericLiteralPrefix:
|
|
4089
4162
|
Description: 'Use smallcase prefixes for numeric literals.'
|
|
4090
4163
|
StyleGuide: '#numeric-literal-prefixes'
|
|
@@ -4095,7 +4168,6 @@ Style/NumericLiteralPrefix:
|
|
|
4095
4168
|
- zero_with_o
|
|
4096
4169
|
- zero_only
|
|
4097
4170
|
|
|
4098
|
-
|
|
4099
4171
|
Style/NumericLiterals:
|
|
4100
4172
|
Description: >-
|
|
4101
4173
|
Add underscores to large numeric literals to improve their
|
|
@@ -4152,6 +4224,7 @@ Style/OptionHash:
|
|
|
4152
4224
|
- args
|
|
4153
4225
|
- params
|
|
4154
4226
|
- parameters
|
|
4227
|
+
Allowlist: []
|
|
4155
4228
|
|
|
4156
4229
|
Style/OptionalArguments:
|
|
4157
4230
|
Description: >-
|
|
@@ -4404,12 +4477,19 @@ Style/RedundantSelfAssignment:
|
|
|
4404
4477
|
Safe: false
|
|
4405
4478
|
VersionAdded: '0.90'
|
|
4406
4479
|
|
|
4480
|
+
Style/RedundantSelfAssignmentBranch:
|
|
4481
|
+
Description: 'Checks for places where conditional branch makes redundant self-assignment.'
|
|
4482
|
+
Enabled: pending
|
|
4483
|
+
VersionAdded: '1.19'
|
|
4484
|
+
|
|
4407
4485
|
Style/RedundantSort:
|
|
4408
4486
|
Description: >-
|
|
4409
4487
|
Use `min` instead of `sort.first`,
|
|
4410
4488
|
`max_by` instead of `sort_by...last`, etc.
|
|
4411
4489
|
Enabled: true
|
|
4412
4490
|
VersionAdded: '0.76'
|
|
4491
|
+
VersionChanged: '1.22'
|
|
4492
|
+
Safe: false
|
|
4413
4493
|
|
|
4414
4494
|
Style/RedundantSortBy:
|
|
4415
4495
|
Description: 'Use `sort` instead of `sort_by { |x| x }`.'
|
|
@@ -4490,6 +4570,12 @@ Style/Sample:
|
|
|
4490
4570
|
Enabled: true
|
|
4491
4571
|
VersionAdded: '0.30'
|
|
4492
4572
|
|
|
4573
|
+
Style/SelectByRegexp:
|
|
4574
|
+
Description: 'Prefer grep/grep_v to select/reject with a regexp match.'
|
|
4575
|
+
Enabled: pending
|
|
4576
|
+
SafeAutoCorrect: false
|
|
4577
|
+
VersionAdded: '1.22'
|
|
4578
|
+
|
|
4493
4579
|
Style/SelfAssignment:
|
|
4494
4580
|
Description: >-
|
|
4495
4581
|
Checks for places where self-assignment shorthand should have
|
|
@@ -4575,6 +4661,7 @@ Style/SpecialGlobalVars:
|
|
|
4575
4661
|
VersionAdded: '0.13'
|
|
4576
4662
|
VersionChanged: '0.36'
|
|
4577
4663
|
SafeAutoCorrect: false
|
|
4664
|
+
RequireEnglish: true
|
|
4578
4665
|
EnforcedStyle: use_english_names
|
|
4579
4666
|
SupportedStyles:
|
|
4580
4667
|
- use_perl_names
|
|
@@ -4675,8 +4762,9 @@ Style/StructInheritance:
|
|
|
4675
4762
|
Description: 'Checks for inheritance from Struct.new.'
|
|
4676
4763
|
StyleGuide: '#no-extend-struct-new'
|
|
4677
4764
|
Enabled: true
|
|
4765
|
+
SafeAutoCorrect: false
|
|
4678
4766
|
VersionAdded: '0.29'
|
|
4679
|
-
VersionChanged: '
|
|
4767
|
+
VersionChanged: '1.20'
|
|
4680
4768
|
|
|
4681
4769
|
Style/SwapValues:
|
|
4682
4770
|
Description: 'This cop enforces the use of shorthand-style swapping of 2 variables.'
|
|
@@ -4895,7 +4983,7 @@ Style/VariableInterpolation:
|
|
|
4895
4983
|
|
|
4896
4984
|
Style/WhenThen:
|
|
4897
4985
|
Description: 'Use when x then ... for one-line cases.'
|
|
4898
|
-
StyleGuide: '#
|
|
4986
|
+
StyleGuide: '#no-when-semicolons'
|
|
4899
4987
|
Enabled: true
|
|
4900
4988
|
VersionAdded: '0.9'
|
|
4901
4989
|
|
|
@@ -4919,7 +5007,7 @@ Style/WordArray:
|
|
|
4919
5007
|
StyleGuide: '#percent-w'
|
|
4920
5008
|
Enabled: true
|
|
4921
5009
|
VersionAdded: '0.9'
|
|
4922
|
-
VersionChanged: '
|
|
5010
|
+
VersionChanged: '1.19'
|
|
4923
5011
|
EnforcedStyle: percent
|
|
4924
5012
|
SupportedStyles:
|
|
4925
5013
|
# percent style: %w(word1 word2)
|
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.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: 2021-
|
|
11
|
+
date: 2021-10-22 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.22.2
|
|
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.22.2
|
|
27
27
|
description:
|
|
28
28
|
email:
|
|
29
29
|
- oss@chef.io
|