chefstyle 2.0.5 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/disable_all.yml +10 -0
- data/config/upstream.yml +116 -36
- 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: 02f6bfb5071459f0eca9733c7cfff85f5152fcfb7a2719dc3bb29a337f110e78
|
4
|
+
data.tar.gz: 7ab00c86bf0ee04ba841d8c21a0e768b97ee3881ec1e2ffc3cf37f0e2974cbbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c57e11fe5a2d8e1b5e8abdf2a2b1c4109ee40ce73da1f1647dd42350c55ab6ff30292f55a11e50d57e5d5cd9ccade9ee015f03d7cccc0893793e69edd66b2ec5
|
7
|
+
data.tar.gz: dbee5d8c1476bfa3baa3127add777358d67c2bc3ad6ec1142cfdb820529f61024d6b1dfa162e8178872a6b2ffd7a00ec4c1d07efbe7e10490967ab241462953c
|
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:
|
@@ -123,6 +125,8 @@ Layout/LeadingCommentSpace:
|
|
123
125
|
Enabled: false
|
124
126
|
Layout/LeadingEmptyLines:
|
125
127
|
Enabled: false
|
128
|
+
Layout/LineEndStringConcatenationIndentation:
|
129
|
+
Enabled: false
|
126
130
|
Layout/LineLength:
|
127
131
|
Enabled: false
|
128
132
|
Layout/MultilineArrayBraceLayout:
|
@@ -217,6 +221,8 @@ Lint/AmbiguousBlockAssociation:
|
|
217
221
|
Enabled: false
|
218
222
|
Lint/AmbiguousOperator:
|
219
223
|
Enabled: false
|
224
|
+
Lint/AmbiguousRange:
|
225
|
+
Enabled: false
|
220
226
|
Lint/AmbiguousRegexpLiteral:
|
221
227
|
Enabled: false
|
222
228
|
Lint/AssignmentInCondition:
|
@@ -487,6 +493,8 @@ Naming/HeredocDelimiterCase:
|
|
487
493
|
Enabled: false
|
488
494
|
Naming/HeredocDelimiterNaming:
|
489
495
|
Enabled: false
|
496
|
+
Naming/InclusiveLanguage:
|
497
|
+
Enabled: false
|
490
498
|
Naming/MemoizedInstanceVariableName:
|
491
499
|
Enabled: false
|
492
500
|
Naming/MethodName:
|
@@ -701,6 +709,8 @@ Style/RedundantFileExtensionInRequire:
|
|
701
709
|
Enabled: false
|
702
710
|
Style/RedundantSelfAssignment:
|
703
711
|
Enabled: false
|
712
|
+
Style/RedundantSelfAssignmentBranch:
|
713
|
+
Enabled: false
|
704
714
|
Style/SoleNestedConditional:
|
705
715
|
Enabled: false
|
706
716
|
Style/StaticClass:
|
data/config/upstream.yml
CHANGED
@@ -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
|
@@ -270,8 +284,8 @@ Layout/AccessModifierIndentation:
|
|
270
284
|
SupportedStyles:
|
271
285
|
- outdent
|
272
286
|
- indent
|
273
|
-
# By default
|
274
|
-
#
|
287
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
288
|
+
# but it can be overridden by setting this parameter.
|
275
289
|
IndentationWidth: ~
|
276
290
|
|
277
291
|
Layout/ArgumentAlignment:
|
@@ -299,8 +313,8 @@ Layout/ArgumentAlignment:
|
|
299
313
|
SupportedStyles:
|
300
314
|
- with_first_argument
|
301
315
|
- with_fixed_indentation
|
302
|
-
# By default
|
303
|
-
#
|
316
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
317
|
+
# but it can be overridden by setting this parameter.
|
304
318
|
IndentationWidth: ~
|
305
319
|
|
306
320
|
Layout/ArrayAlignment:
|
@@ -328,8 +342,8 @@ Layout/ArrayAlignment:
|
|
328
342
|
SupportedStyles:
|
329
343
|
- with_first_element
|
330
344
|
- with_fixed_indentation
|
331
|
-
# By default
|
332
|
-
#
|
345
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
346
|
+
# but it can be overridden by setting this parameter.
|
333
347
|
IndentationWidth: ~
|
334
348
|
|
335
349
|
Layout/AssignmentIndentation:
|
@@ -339,8 +353,8 @@ Layout/AssignmentIndentation:
|
|
339
353
|
Enabled: true
|
340
354
|
VersionAdded: '0.49'
|
341
355
|
VersionChanged: '0.77'
|
342
|
-
# By default
|
343
|
-
#
|
356
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
357
|
+
# but it can be overridden by setting this parameter.
|
344
358
|
IndentationWidth: ~
|
345
359
|
|
346
360
|
Layout/BeginEndAlignment:
|
@@ -387,9 +401,9 @@ Layout/CaseIndentation:
|
|
387
401
|
- case
|
388
402
|
- end
|
389
403
|
IndentOneStep: false
|
390
|
-
# By default
|
391
|
-
#
|
392
|
-
# This only matters if `IndentOneStep` is `true
|
404
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
405
|
+
# but it can be overridden by setting this parameter.
|
406
|
+
# This only matters if `IndentOneStep` is `true`.
|
393
407
|
IndentationWidth: ~
|
394
408
|
|
395
409
|
Layout/ClassStructure:
|
@@ -666,8 +680,8 @@ Layout/FirstArgumentIndentation:
|
|
666
680
|
# Same as `special_for_inner_method_call` except that the special rule only
|
667
681
|
# applies if the outer method call encloses its arguments in parentheses.
|
668
682
|
- special_for_inner_method_call_in_parentheses
|
669
|
-
# By default
|
670
|
-
#
|
683
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
684
|
+
# but it can be overridden by setting this parameter.
|
671
685
|
IndentationWidth: ~
|
672
686
|
|
673
687
|
Layout/FirstArrayElementIndentation:
|
@@ -693,8 +707,8 @@ Layout/FirstArrayElementIndentation:
|
|
693
707
|
- special_inside_parentheses
|
694
708
|
- consistent
|
695
709
|
- align_brackets
|
696
|
-
# By default
|
697
|
-
#
|
710
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
711
|
+
# but it can be overridden by setting this parameter.
|
698
712
|
IndentationWidth: ~
|
699
713
|
|
700
714
|
Layout/FirstArrayElementLineBreak:
|
@@ -725,8 +739,8 @@ Layout/FirstHashElementIndentation:
|
|
725
739
|
- special_inside_parentheses
|
726
740
|
- consistent
|
727
741
|
- align_braces
|
728
|
-
# By default
|
729
|
-
#
|
742
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
743
|
+
# but it can be overridden by setting this parameter.
|
730
744
|
IndentationWidth: ~
|
731
745
|
|
732
746
|
Layout/FirstHashElementLineBreak:
|
@@ -761,8 +775,8 @@ Layout/FirstParameterIndentation:
|
|
761
775
|
SupportedStyles:
|
762
776
|
- consistent
|
763
777
|
- align_parentheses
|
764
|
-
# By default
|
765
|
-
#
|
778
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
779
|
+
# but it can be overridden by setting this parameter.
|
766
780
|
IndentationWidth: ~
|
767
781
|
|
768
782
|
Layout/HashAlignment:
|
@@ -883,8 +897,8 @@ Layout/IndentationStyle:
|
|
883
897
|
Enabled: true
|
884
898
|
VersionAdded: '0.49'
|
885
899
|
VersionChanged: '0.82'
|
886
|
-
# By default
|
887
|
-
#
|
900
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
901
|
+
# but it can be overridden by setting this parameter.
|
888
902
|
# It is used during auto-correction to determine how many spaces should
|
889
903
|
# replace each tab.
|
890
904
|
IndentationWidth: ~
|
@@ -923,6 +937,20 @@ Layout/LeadingEmptyLines:
|
|
923
937
|
VersionAdded: '0.57'
|
924
938
|
VersionChanged: '0.77'
|
925
939
|
|
940
|
+
Layout/LineEndStringConcatenationIndentation:
|
941
|
+
Description: >-
|
942
|
+
Checks the indentation of the next line after a line that
|
943
|
+
ends with a string literal and a backslash.
|
944
|
+
Enabled: pending
|
945
|
+
VersionAdded: '1.18'
|
946
|
+
EnforcedStyle: aligned
|
947
|
+
SupportedStyles:
|
948
|
+
- aligned
|
949
|
+
- indented
|
950
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
951
|
+
# but it can be overridden by setting this parameter.
|
952
|
+
IndentationWidth: ~
|
953
|
+
|
926
954
|
Layout/LineLength:
|
927
955
|
Description: 'Checks that line length does not exceed the configured limit.'
|
928
956
|
StyleGuide: '#max-line-length'
|
@@ -1053,8 +1081,8 @@ Layout/MultilineMethodCallIndentation:
|
|
1053
1081
|
- aligned
|
1054
1082
|
- indented
|
1055
1083
|
- indented_relative_to_receiver
|
1056
|
-
# By default
|
1057
|
-
#
|
1084
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
1085
|
+
# but it can be overridden by setting this parameter.
|
1058
1086
|
IndentationWidth: ~
|
1059
1087
|
|
1060
1088
|
Layout/MultilineMethodDefinitionBraceLayout:
|
@@ -1083,8 +1111,8 @@ Layout/MultilineOperationIndentation:
|
|
1083
1111
|
SupportedStyles:
|
1084
1112
|
- aligned
|
1085
1113
|
- indented
|
1086
|
-
# By default
|
1087
|
-
#
|
1114
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
1115
|
+
# but it can be overridden by setting this parameter.
|
1088
1116
|
IndentationWidth: ~
|
1089
1117
|
|
1090
1118
|
Layout/ParameterAlignment:
|
@@ -1112,8 +1140,8 @@ Layout/ParameterAlignment:
|
|
1112
1140
|
SupportedStyles:
|
1113
1141
|
- with_first_parameter
|
1114
1142
|
- with_fixed_indentation
|
1115
|
-
# By default
|
1116
|
-
#
|
1143
|
+
# By default the indentation width from `Layout/IndentationWidth` is used,
|
1144
|
+
# but it can be overridden by setting this parameter.
|
1117
1145
|
IndentationWidth: ~
|
1118
1146
|
|
1119
1147
|
Layout/RedundantLineBreak:
|
@@ -1420,6 +1448,13 @@ Lint/AmbiguousOperator:
|
|
1420
1448
|
VersionAdded: '0.17'
|
1421
1449
|
VersionChanged: '0.83'
|
1422
1450
|
|
1451
|
+
Lint/AmbiguousRange:
|
1452
|
+
Description: Checks for ranges with ambiguous boundaries.
|
1453
|
+
Enabled: pending
|
1454
|
+
VersionAdded: '1.19'
|
1455
|
+
SafeAutoCorrect: false
|
1456
|
+
RequireParenthesesForMethodChains: false
|
1457
|
+
|
1423
1458
|
Lint/AmbiguousRegexpLiteral:
|
1424
1459
|
Description: >-
|
1425
1460
|
Checks for ambiguous regexp literals in the first argument of
|
@@ -1498,6 +1533,11 @@ Lint/Debugger:
|
|
1498
1533
|
Capybara:
|
1499
1534
|
- save_and_open_page
|
1500
1535
|
- save_and_open_screenshot
|
1536
|
+
debug.rb:
|
1537
|
+
- binding.b
|
1538
|
+
- binding.break
|
1539
|
+
- Kernel.binding.b
|
1540
|
+
- Kernel.binding.break
|
1501
1541
|
Pry:
|
1502
1542
|
- binding.pry
|
1503
1543
|
- binding.remote_pry
|
@@ -1506,6 +1546,8 @@ Lint/Debugger:
|
|
1506
1546
|
Rails:
|
1507
1547
|
- debugger
|
1508
1548
|
- Kernel.debugger
|
1549
|
+
RubyJard:
|
1550
|
+
- jard
|
1509
1551
|
WebConsole:
|
1510
1552
|
- binding.console
|
1511
1553
|
|
@@ -1795,7 +1837,7 @@ Lint/MissingCopEnableDirective:
|
|
1795
1837
|
Lint/MissingSuper:
|
1796
1838
|
Description: >-
|
1797
1839
|
This cop checks for the presence of constructors and lifecycle callbacks
|
1798
|
-
without calls to `super
|
1840
|
+
without calls to `super`.
|
1799
1841
|
Enabled: true
|
1800
1842
|
VersionAdded: '0.89'
|
1801
1843
|
VersionChanged: '1.4'
|
@@ -1810,7 +1852,6 @@ Lint/MultipleComparison:
|
|
1810
1852
|
Enabled: true
|
1811
1853
|
VersionAdded: '0.47'
|
1812
1854
|
VersionChanged: '1.1'
|
1813
|
-
AllowMethodComparison: true
|
1814
1855
|
|
1815
1856
|
Lint/NestedMethodDefinition:
|
1816
1857
|
Description: 'Do not use nested method definitions.'
|
@@ -2520,6 +2561,32 @@ Naming/HeredocDelimiterNaming:
|
|
2520
2561
|
ForbiddenDelimiters:
|
2521
2562
|
- !ruby/regexp '/(^|\s)(EO[A-Z]{1}|END)(\s|$)/'
|
2522
2563
|
|
2564
|
+
Naming/InclusiveLanguage:
|
2565
|
+
Description: 'Recommend the use of inclusive language instead of problematic terms.'
|
2566
|
+
Enabled: pending
|
2567
|
+
VersionAdded: '1.18'
|
2568
|
+
CheckIdentifiers: true
|
2569
|
+
CheckConstants: true
|
2570
|
+
CheckVariables: true
|
2571
|
+
CheckStrings: false
|
2572
|
+
CheckSymbols: true
|
2573
|
+
CheckComments: true
|
2574
|
+
CheckFilepaths: true
|
2575
|
+
FlaggedTerms:
|
2576
|
+
whitelist:
|
2577
|
+
Regex: !ruby/regexp '/white[-_\s]?list/'
|
2578
|
+
Suggestions:
|
2579
|
+
- allowlist
|
2580
|
+
- permit
|
2581
|
+
blacklist:
|
2582
|
+
Regex: !ruby/regexp '/black[-_\s]?list/'
|
2583
|
+
Suggestions:
|
2584
|
+
- denylist
|
2585
|
+
- block
|
2586
|
+
slave:
|
2587
|
+
WholeWord: true
|
2588
|
+
Suggestions: ['replica', 'secondary', 'follower']
|
2589
|
+
|
2523
2590
|
Naming/MemoizedInstanceVariableName:
|
2524
2591
|
Description: >-
|
2525
2592
|
Memoized method name should match memo instance variable name.
|
@@ -3103,7 +3170,7 @@ Style/CommentAnnotation:
|
|
3103
3170
|
StyleGuide: '#annotate-keywords'
|
3104
3171
|
Enabled: true
|
3105
3172
|
VersionAdded: '0.10'
|
3106
|
-
VersionChanged: '1.
|
3173
|
+
VersionChanged: '1.20'
|
3107
3174
|
Keywords:
|
3108
3175
|
- TODO
|
3109
3176
|
- FIXME
|
@@ -3111,12 +3178,14 @@ Style/CommentAnnotation:
|
|
3111
3178
|
- HACK
|
3112
3179
|
- REVIEW
|
3113
3180
|
- NOTE
|
3181
|
+
RequireColon: true
|
3114
3182
|
|
3115
3183
|
Style/CommentedKeyword:
|
3116
3184
|
Description: 'Do not place comments on the same line as certain keywords.'
|
3117
3185
|
Enabled: true
|
3186
|
+
SafeAutoCorrect: false
|
3118
3187
|
VersionAdded: '0.51'
|
3119
|
-
VersionChanged: '1.
|
3188
|
+
VersionChanged: '1.19'
|
3120
3189
|
|
3121
3190
|
Style/ConditionalAssignment:
|
3122
3191
|
Description: >-
|
@@ -3563,8 +3632,9 @@ Style/IdenticalConditionalBranches:
|
|
3563
3632
|
line at the end of each branch, which can validly be moved
|
3564
3633
|
out of the conditional.
|
3565
3634
|
Enabled: true
|
3635
|
+
SafeAutoCorrect: false
|
3566
3636
|
VersionAdded: '0.36'
|
3567
|
-
VersionChanged: '1.
|
3637
|
+
VersionChanged: '1.19'
|
3568
3638
|
|
3569
3639
|
Style/IfInsideElse:
|
3570
3640
|
Description: 'Finds if nodes inside else, which can be converted to elsif.'
|
@@ -3889,6 +3959,7 @@ Style/MultipleComparison:
|
|
3889
3959
|
Enabled: true
|
3890
3960
|
VersionAdded: '0.49'
|
3891
3961
|
VersionChanged: '1.1'
|
3962
|
+
AllowMethodComparison: true
|
3892
3963
|
|
3893
3964
|
Style/MutableConstant:
|
3894
3965
|
Description: 'Do not assign mutable objects to constants.'
|
@@ -4112,6 +4183,7 @@ Style/OptionHash:
|
|
4112
4183
|
- args
|
4113
4184
|
- params
|
4114
4185
|
- parameters
|
4186
|
+
Allowlist: []
|
4115
4187
|
|
4116
4188
|
Style/OptionalArguments:
|
4117
4189
|
Description: >-
|
@@ -4364,6 +4436,11 @@ Style/RedundantSelfAssignment:
|
|
4364
4436
|
Safe: false
|
4365
4437
|
VersionAdded: '0.90'
|
4366
4438
|
|
4439
|
+
Style/RedundantSelfAssignmentBranch:
|
4440
|
+
Description: 'Checks for places where conditional branch makes redundant self-assignment.'
|
4441
|
+
Enabled: pending
|
4442
|
+
VersionAdded: '1.19'
|
4443
|
+
|
4367
4444
|
Style/RedundantSort:
|
4368
4445
|
Description: >-
|
4369
4446
|
Use `min` instead of `sort.first`,
|
@@ -4535,6 +4612,7 @@ Style/SpecialGlobalVars:
|
|
4535
4612
|
VersionAdded: '0.13'
|
4536
4613
|
VersionChanged: '0.36'
|
4537
4614
|
SafeAutoCorrect: false
|
4615
|
+
RequireEnglish: true
|
4538
4616
|
EnforcedStyle: use_english_names
|
4539
4617
|
SupportedStyles:
|
4540
4618
|
- use_perl_names
|
@@ -4576,7 +4654,8 @@ Style/StringConcatenation:
|
|
4576
4654
|
Enabled: true
|
4577
4655
|
Safe: false
|
4578
4656
|
VersionAdded: '0.89'
|
4579
|
-
VersionChanged: '1.
|
4657
|
+
VersionChanged: '1.18'
|
4658
|
+
Mode: aggressive
|
4580
4659
|
|
4581
4660
|
Style/StringHashKeys:
|
4582
4661
|
Description: 'Prefer symbols instead of strings as hash keys.'
|
@@ -4634,8 +4713,9 @@ Style/StructInheritance:
|
|
4634
4713
|
Description: 'Checks for inheritance from Struct.new.'
|
4635
4714
|
StyleGuide: '#no-extend-struct-new'
|
4636
4715
|
Enabled: true
|
4716
|
+
SafeAutoCorrect: false
|
4637
4717
|
VersionAdded: '0.29'
|
4638
|
-
VersionChanged: '
|
4718
|
+
VersionChanged: '1.20'
|
4639
4719
|
|
4640
4720
|
Style/SwapValues:
|
4641
4721
|
Description: 'This cop enforces the use of shorthand-style swapping of 2 variables.'
|
@@ -4854,7 +4934,7 @@ Style/VariableInterpolation:
|
|
4854
4934
|
|
4855
4935
|
Style/WhenThen:
|
4856
4936
|
Description: 'Use when x then ... for one-line cases.'
|
4857
|
-
StyleGuide: '#
|
4937
|
+
StyleGuide: '#no-when-semicolons'
|
4858
4938
|
Enabled: true
|
4859
4939
|
VersionAdded: '0.9'
|
4860
4940
|
|
@@ -4878,7 +4958,7 @@ Style/WordArray:
|
|
4878
4958
|
StyleGuide: '#percent-w'
|
4879
4959
|
Enabled: true
|
4880
4960
|
VersionAdded: '0.9'
|
4881
|
-
VersionChanged: '
|
4961
|
+
VersionChanged: '1.19'
|
4882
4962
|
EnforcedStyle: percent
|
4883
4963
|
SupportedStyles:
|
4884
4964
|
# 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.0.
|
4
|
+
version: 2.0.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: 2021-
|
11
|
+
date: 2021-08-27 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.20.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.20.0
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- oss@chef.io
|