chefstyle 0.12.0 → 0.13.0

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: fb5721af35b1c0dbf266e85921b08c6d666c7af40b9a3b9e87662b207669cebe
4
- data.tar.gz: a284368f9f483342b0fc2aa9dadaab347dd0745c9ee6e4ab63b4ed92483cfd5d
3
+ metadata.gz: d4e12a2a3382d42dd88e672f7e5e13a4208f629bcea40fcb7743d0b8c4981aec
4
+ data.tar.gz: 82393a1e028e5be97a672865dc329ad47c7a053997a055224f764de9ceecbf35
5
5
  SHA512:
6
- metadata.gz: 75a594f57342a142e71a4b36c72d85d3d6ee43a87498de252a06205a9c263dfded4e6b04590c59998a54de5a4d8ffa7b2b38262f9820f03cb26c2aa6a3e0ab65
7
- data.tar.gz: fcaa9aa906c5cd70fad5f1c7cbc62488ff78cea2b41ae95b7b6f14d4305ecb99cc0545f9bd1b7da3a9a8ccbe53ab4be1b2edfbe94b7d62eafa16901d9bcbaf1c
6
+ metadata.gz: c17083813e7a064e7204069d52dce2566b83f3e06b32c0aedc424adecb773ba43e03742d620d6490da420e854e0ba438bd26a9fb1a34c2ddc3f8ca991b4adece
7
+ data.tar.gz: fd37b3e4c50f020b1fe14d750236d9bb8c7b46c18860f562f81233f7f4798fed0ad4d6aaf585c54e38bd700e51bde74c2730f17d25445e25a34788283ccc3ae6
@@ -6,7 +6,7 @@ AllCops:
6
6
  #
7
7
 
8
8
  Bundler/DuplicatedGem:
9
- Enabled: true
9
+ Enabled: false
10
10
 
11
11
  #
12
12
  # Lint
@@ -66,8 +66,6 @@ Lint/InheritException:
66
66
  Enabled: true
67
67
  Lint/IneffectiveAccessModifier:
68
68
  Enabled: true
69
- Lint/InvalidCharacterLiteral:
70
- Enabled: true
71
69
  Lint/LiteralInCondition:
72
70
  Enabled: true
73
71
  Lint/LiteralInInterpolation:
@@ -104,8 +102,6 @@ Lint/UnderscorePrefixedVariableName:
104
102
  Enabled: true
105
103
  Lint/UnifiedInteger:
106
104
  Enabled: true
107
- Lint/UnneededDisable:
108
- Enabled: true
109
105
  Lint/UnneededSplatExpansion:
110
106
  Enabled: true
111
107
  Lint/UnreachableCode:
@@ -144,88 +140,6 @@ Lint/RescueException:
144
140
  Lint/UnneededDisable:
145
141
  Enabled: false
146
142
 
147
- #
148
- # Performance
149
- #
150
-
151
- Performance/Casecmp:
152
- Enabled: true
153
- Performance/CaseWhenSplat:
154
- Enabled: true
155
- Performance/CompareWithBlock:
156
- Enabled: true
157
- Performance/Count:
158
- Enabled: true
159
- Performance/Detect:
160
- Enabled: true
161
- Performance/DoubleStartEndWith:
162
- Enabled: true
163
- Performance/EndWith:
164
- Enabled: true
165
- Performance/FixedSize:
166
- Enabled: true
167
- Performance/FlatMap:
168
- Enabled: true
169
- Performance/HashEachMethods:
170
- Enabled: true
171
- Performance/LstripRstrip:
172
- Enabled: true
173
- Performance/RangeInclude:
174
- Enabled: true
175
- Performance/RedundantBlockCall:
176
- Enabled: true
177
- Performance/RedundantMatch:
178
- Enabled: true
179
- Performance/RedundantMerge:
180
- Enabled: true
181
- Performance/RedundantSortBy:
182
- Enabled: true
183
- Performance/RegexpMatch:
184
- Enabled: true
185
- Performance/ReverseEach:
186
- Enabled: true
187
- Performance/Sample:
188
- Enabled: true
189
- Performance/Size:
190
- Enabled: true
191
- Performance/SortWithBlock:
192
- Enabled: true
193
- Performance/StartWith:
194
- Enabled: true
195
- Performance/StringReplacement:
196
- Enabled: true
197
- Performance/TimesMap:
198
- Enabled: true
199
-
200
- #
201
- # Rails
202
- #
203
-
204
- Rails/ActionFilter:
205
- Enabled: true
206
- Rails/Date:
207
- Enabled: true
208
- Rails/Delegate:
209
- Enabled: true
210
- Rails/FindBy:
211
- Enabled: true
212
- Rails/FindEach:
213
- Enabled: true
214
- Rails/HasAndBelongsToMany:
215
- Enabled: true
216
- Rails/Output:
217
- Enabled: true
218
- Rails/PluralizationGrammar:
219
- Enabled: true
220
- Rails/ReadWriteAttribute:
221
- Enabled: true
222
- Rails/ScopeArgs:
223
- Enabled: true
224
- Rails/TimeZone:
225
- Enabled: true
226
- Rails/Validation:
227
- Enabled: true
228
-
229
143
  #
230
144
  # Security
231
145
  #
@@ -319,12 +233,10 @@ Style/EvenOdd:
319
233
  Enabled: true
320
234
  Layout/ExtraSpacing:
321
235
  Enabled: true
322
- Style/FlipFlop:
236
+ Lint/FlipFlop:
323
237
  Enabled: true
324
238
  Style/For:
325
239
  Enabled: true
326
- Style/FrozenStringLiteralComment:
327
- Enabled: true
328
240
  Style/HashSyntax:
329
241
  Enabled: true
330
242
  Naming/HeredocDelimiterCase:
@@ -384,7 +296,7 @@ Style/NumericPredicate:
384
296
  EnforcedStyle: comparison
385
297
  Style/OneLineConditional:
386
298
  Enabled: true
387
- Style/OpMethod:
299
+ Naming/BinaryOperatorParameterName:
388
300
  Enabled: true
389
301
  Style/OptionalArguments:
390
302
  Enabled: true
@@ -492,7 +404,10 @@ Style/TrailingCommaInHashLiteral:
492
404
  Enabled: true
493
405
  EnforcedStyleForMultiline: comma
494
406
  # rubocop's default gets this completely backwards
495
- Style/TrailingCommaInLiteral:
407
+ Style/TrailingCommaInArray:
408
+ Enabled: true
409
+ EnforcedStyleForMultiline: comma
410
+ Style/TrailingCommaInHash:
496
411
  Enabled: true
497
412
  EnforcedStyleForMultiline: comma
498
413
  Style/TrailingUnderscoreVariable:
@@ -570,7 +485,7 @@ Style/Encoding:
570
485
  Enabled: false
571
486
 
572
487
  # Dan is -1 on this one: https://github.com/chef/chef/pull/4526#issuecomment-179950045
573
- Layout/IndentHash:
488
+ Layout/IndentFirstHashElement:
574
489
  Enabled: false
575
490
 
576
491
  # This is overly aggressive and autofix broke stuff, would need to exclude classes
@@ -623,6 +538,12 @@ Style/SpecialGlobalVars:
623
538
  Style/GuardClause:
624
539
  Enabled: false
625
540
 
541
+ Style/RedundantSortBy:
542
+ Enabled: true
543
+
544
+ Style/Sample:
545
+ Enabled: true
546
+
626
547
  # Let authors order gems however makes sense
627
548
  Bundler/OrderedGems:
628
549
  Enabled: false
@@ -13,8 +13,12 @@ Gemspec/OrderedDependencies:
13
13
  Enabled: false
14
14
  Gemspec/RequiredRubyVersion:
15
15
  Enabled: false
16
+ Gemspec/RubyVersionGlobalsUsage:
17
+ Enabled: false
16
18
  Layout/AccessModifierIndentation:
17
19
  Enabled: false
20
+ Layout/AlignArguments:
21
+ Enabled: false
18
22
  Layout/AlignArray:
19
23
  Enabled: false
20
24
  Layout/AlignHash:
@@ -83,9 +87,7 @@ Layout/FirstMethodArgumentLineBreak:
83
87
  Enabled: false
84
88
  Layout/FirstMethodParameterLineBreak:
85
89
  Enabled: false
86
- Layout/FirstParameterIndentation:
87
- Enabled: false
88
- Layout/IndentArray:
90
+ Layout/HeredocArgumentClosingParenthesis:
89
91
  Enabled: false
90
92
  Layout/IndentAssignment:
91
93
  Enabled: false
@@ -93,7 +95,13 @@ Layout/IndentationConsistency:
93
95
  Enabled: false
94
96
  Layout/IndentationWidth:
95
97
  Enabled: false
96
- Layout/IndentHash:
98
+ Layout/IndentFirstArgument:
99
+ Enabled: false
100
+ Layout/IndentFirstArrayElement:
101
+ Enabled: false
102
+ Layout/IndentFirstHashElement:
103
+ Enabled: false
104
+ Layout/IndentFirstParameter:
97
105
  Enabled: false
98
106
  Layout/IndentHeredoc:
99
107
  Enabled: false
@@ -105,12 +113,18 @@ Layout/LeadingCommentSpace:
105
113
  Enabled: false
106
114
  Layout/MultilineArrayBraceLayout:
107
115
  Enabled: false
116
+ Layout/MultilineArrayLineBreaks:
117
+ Enabled: false
108
118
  Layout/MultilineAssignmentLayout:
109
119
  Enabled: false
110
120
  Layout/MultilineBlockLayout:
111
121
  Enabled: false
112
122
  Layout/MultilineHashBraceLayout:
113
123
  Enabled: false
124
+ Layout/MultilineHashKeyLineBreaks:
125
+ Enabled: false
126
+ Layout/MultilineMethodArgumentLineBreaks:
127
+ Enabled: false
114
128
  Layout/MultilineMethodCallBraceLayout:
115
129
  Enabled: false
116
130
  Layout/MultilineMethodCallIndentation:
@@ -193,6 +207,8 @@ Lint/Debugger:
193
207
  Enabled: false
194
208
  Lint/DeprecatedClassMethods:
195
209
  Enabled: false
210
+ Lint/DisjunctiveAssignmentInConstructor:
211
+ Enabled: false
196
212
  Lint/DuplicateCaseCondition:
197
213
  Enabled: false
198
214
  Lint/DuplicateMethods:
@@ -217,12 +233,16 @@ Lint/EnsureReturn:
217
233
  Enabled: false
218
234
  Lint/ErbNewArguments:
219
235
  Enabled: false
236
+ Lint/FlipFlop:
237
+ Enabled: false
220
238
  Lint/FloatOutOfRange:
221
239
  Enabled: false
222
240
  Lint/FormatParameterMismatch:
223
241
  Enabled: false
224
242
  Lint/HandleExceptions:
225
243
  Enabled: false
244
+ Lint/HeredocMethodCallPosition:
245
+ Enabled: false
226
246
  Lint/ImplicitStringConcatenation:
227
247
  Enabled: false
228
248
  Lint/InheritException:
@@ -279,6 +299,8 @@ Lint/SafeNavigationConsistency:
279
299
  Enabled: false
280
300
  Lint/SafeNavigationChain:
281
301
  Enabled: false
302
+ Lint/SafeNavigationWithEmpty:
303
+ Enabled: false
282
304
  Lint/ScriptPermission:
283
305
  Enabled: false
284
306
  Lint/ShadowedArgument:
@@ -291,6 +313,8 @@ Lint/StringConversionInInterpolation:
291
313
  Enabled: false
292
314
  Lint/Syntax:
293
315
  Enabled: false
316
+ Lint/ToJSON:
317
+ Enabled: false
294
318
  Lint/UnderscorePrefixedVariableName:
295
319
  Enabled: false
296
320
  Lint/UnifiedInteger:
@@ -367,6 +391,8 @@ Naming/BinaryOperatorParameterName:
367
391
  Enabled: false
368
392
  Naming/PredicateName:
369
393
  Enabled: false
394
+ Naming/RescuedExceptionsVariableName:
395
+ Enabled: false
370
396
  Naming/UncommunicativeBlockParamName:
371
397
  Enabled: false
372
398
  Naming/UncommunicativeMethodParamName:
@@ -375,64 +401,6 @@ Naming/VariableName:
375
401
  Enabled: false
376
402
  Naming/VariableNumber:
377
403
  Enabled: false
378
- Performance/Caller:
379
- Enabled: false
380
- Performance/CaseWhenSplat:
381
- Enabled: false
382
- Performance/Casecmp:
383
- Enabled: false
384
- Performance/Count:
385
- Enabled: false
386
- Performance/Detect:
387
- Enabled: false
388
- Performance/DoubleStartEndWith:
389
- Enabled: false
390
- Performance/EndWith:
391
- Enabled: false
392
- Performance/FixedSize:
393
- Enabled: false
394
- Performance/FlatMap:
395
- Enabled: false
396
- Performance/InefficientHashSearch:
397
- Enabled: false
398
- Performance/LstripRstrip:
399
- Enabled: false
400
- Performance/OpenStruct:
401
- Enabled: false
402
- Performance/RangeInclude:
403
- Enabled: false
404
- Performance/RedundantBlockCall:
405
- Enabled: false
406
- Performance/RedundantMatch:
407
- Enabled: false
408
- Performance/RedundantMerge:
409
- Enabled: false
410
- Performance/RedundantSortBy:
411
- Enabled: false
412
- Performance/RegexpMatch:
413
- Enabled: false
414
- Performance/ReverseEach:
415
- Enabled: false
416
- Performance/Sample:
417
- Enabled: false
418
- Performance/Size:
419
- Enabled: false
420
- Performance/CompareWithBlock:
421
- Enabled: false
422
- Performance/StartWith:
423
- Enabled: false
424
- Performance/StringReplacement:
425
- Enabled: false
426
- Performance/TimesMap:
427
- Enabled: false
428
- Performance/UnfreezeString:
429
- Enabled: false
430
- Performance/UnneededSort:
431
- Enabled: false
432
- Performance/UriDefaultParser:
433
- Enabled: false
434
- Performance/ChainArrayAllocation:
435
- Enabled: false
436
404
  Style/AccessModifierDeclarations:
437
405
  Enabled: false
438
406
  Style/Alias:
@@ -483,6 +451,8 @@ Style/CommentedKeyword:
483
451
  Enabled: false
484
452
  Style/ConditionalAssignment:
485
453
  Enabled: false
454
+ Style/ConstantVisibility:
455
+ Enabled: false
486
456
  Style/Copyright:
487
457
  Enabled: false
488
458
  Style/DateTime:
@@ -523,7 +493,7 @@ Style/EvenOdd:
523
493
  Enabled: false
524
494
  Style/ExpandPathArguments:
525
495
  Enabled: false
526
- Style/FlipFlop:
496
+ Style/FloatDivision:
527
497
  Enabled: false
528
498
  Style/For:
529
499
  Enabled: false
@@ -605,6 +575,8 @@ Style/MutableConstant:
605
575
  Enabled: false
606
576
  Style/NegatedIf:
607
577
  Enabled: false
578
+ Style/NegatedUnless:
579
+ Enabled: false
608
580
  Style/NegatedWhile:
609
581
  Enabled: false
610
582
  Style/NestedModifier:
@@ -655,6 +627,8 @@ Style/RandomWithOffset:
655
627
  Enabled: false
656
628
  Style/RedundantBegin:
657
629
  Enabled: false
630
+ Style/RedundantConditional:
631
+ Enabled: false
658
632
  Style/RedundantException:
659
633
  Enabled: false
660
634
  Style/RedundantFreeze:
@@ -665,7 +639,7 @@ Style/RedundantReturn:
665
639
  Enabled: false
666
640
  Style/RedundantSelf:
667
641
  Enabled: false
668
- Style/RedundantConditional:
642
+ Style/RedundantSortBy:
669
643
  Enabled: false
670
644
  Style/RegexpLiteral:
671
645
  Enabled: false
@@ -677,6 +651,8 @@ Style/ReturnNil:
677
651
  Enabled: false
678
652
  Style/SafeNavigation:
679
653
  Enabled: false
654
+ Style/Sample:
655
+ Enabled: false
680
656
  Style/SelfAssignment:
681
657
  Enabled: false
682
658
  Style/Semicolon:
@@ -703,6 +679,8 @@ Style/StringLiteralsInInterpolation:
703
679
  Enabled: false
704
680
  Style/StringMethods:
705
681
  Enabled: false
682
+ Style/Strip:
683
+ Enabled: false
706
684
  Style/StructInheritance:
707
685
  Enabled: false
708
686
  Style/SymbolArray:
@@ -741,6 +719,8 @@ Style/UnneededInterpolation:
741
719
  Enabled: false
742
720
  Style/UnneededPercentQ:
743
721
  Enabled: false
722
+ Style/UnneededSort:
723
+ Enabled: false
744
724
  Style/UnpackFirst:
745
725
  Enabled: false
746
726
  Style/VariableInterpolation:
@@ -757,98 +737,6 @@ Style/YodaCondition:
757
737
  Enabled: false
758
738
  Style/ZeroLengthPredicate:
759
739
  Enabled: false
760
- Rails/ActionFilter:
761
- Enabled: false
762
- Rails/ActiveRecordAliases:
763
- Enabled: false
764
- Rails/ActiveSupportAliases:
765
- Enabled: false
766
- Rails/ApplicationJob:
767
- Enabled: false
768
- Rails/ApplicationRecord:
769
- Enabled: false
770
- Rails/AssertNot:
771
- Enabled: false
772
- Rails/Blank:
773
- Enabled: false
774
- Rails/BulkChangeTable:
775
- Enabled: false
776
- Rails/CreateTableWithTimestamps:
777
- Enabled: false
778
- Rails/Date:
779
- Enabled: false
780
- Rails/Delegate:
781
- Enabled: false
782
- Rails/DelegateAllowBlank:
783
- Enabled: false
784
- Rails/DynamicFindBy:
785
- Enabled: false
786
- Rails/EnumUniqueness:
787
- Enabled: false
788
- Rails/EnvironmentComparison:
789
- Enabled: false
790
- Rails/Exit:
791
- Enabled: false
792
- Rails/FilePath:
793
- Enabled: false
794
- Rails/FindBy:
795
- Enabled: false
796
- Rails/FindEach:
797
- Enabled: false
798
- Rails/HasAndBelongsToMany:
799
- Enabled: false
800
- Rails/HasManyOrHasOneDependent:
801
- Enabled: false
802
- Rails/HttpPositionalArguments:
803
- Enabled: false
804
- Rails/HttpStatus:
805
- Enabled: false
806
- Rails/InverseOf:
807
- Enabled: false
808
- Rails/LexicallyScopedActionFilter:
809
- Enabled: false
810
- Rails/LinkToBlank:
811
- Enabled: false
812
- Rails/NotNullColumn:
813
- Enabled: false
814
- Rails/Output:
815
- Enabled: false
816
- Rails/OutputSafety:
817
- Enabled: false
818
- Rails/PluralizationGrammar:
819
- Enabled: false
820
- Rails/Presence:
821
- Enabled: false
822
- Rails/Present:
823
- Enabled: false
824
- Rails/ReadWriteAttribute:
825
- Enabled: false
826
- Rails/RedundantReceiverInWithOptions:
827
- Enabled: false
828
- Rails/RefuteMethods:
829
- Enabled: false
830
- Rails/RelativeDateConstant:
831
- Enabled: false
832
- Rails/RequestReferer:
833
- Enabled: false
834
- Rails/ReversibleMigration:
835
- Enabled: false
836
- Rails/SafeNavigation:
837
- Enabled: false
838
- Rails/SaveBang:
839
- Enabled: false
840
- Rails/ScopeArgs:
841
- Enabled: false
842
- Rails/SkipsModelValidations:
843
- Enabled: false
844
- Rails/TimeZone:
845
- Enabled: false
846
- Rails/UniqBeforePluck:
847
- Enabled: false
848
- Rails/UnknownEnv:
849
- Enabled: false
850
- Rails/Validation:
851
- Enabled: false
852
740
  Security/Eval:
853
741
  Enabled: false
854
742
  Security/JSONLoad: