@@ -346,68 +346,24 @@ Style/CaseEquality:
346
346
- ' lib/puppet/interface/face_collection.rb'
347
347
- ' lib/puppet/module_tool/installed_modules.rb'
348
348
- ' lib/puppet/module_tool/shared_behaviors.rb'
349
- - ' lib/puppet/provider/package/pip.rb'
350
- - ' lib/puppet/provider/package/pkgin.rb'
351
- - ' lib/puppet/settings/integer_setting.rb'
352
349
- ' lib/puppet/util/command_line/puppet_option_parser.rb'
353
350
- ' lib/puppet/util/log/destination.rb'
354
351
- ' lib/puppet/util/multi_match.rb'
355
352
- ' lib/puppet/util/rdoc/generators/puppet_generator.rb'
356
353
357
- # This cop supports unsafe auto-correction (--auto-correct-all).
358
- Style/CaseLikeIf :
359
- Enabled : false
360
-
361
354
# This cop supports safe auto-correction (--auto-correct).
362
355
# Configuration parameters: EnforcedStyle.
363
356
# SupportedStyles: nested, compact
364
357
Style/ClassAndModuleChildren :
365
358
Enabled : false
366
359
367
- # This cop supports safe auto-correction (--auto-correct).
368
- # Configuration parameters: EnforcedStyle.
369
- # SupportedStyles: is_a?, kind_of?
370
- Style/ClassCheck :
371
- Exclude :
372
- - ' lib/puppet/error.rb'
373
- - ' lib/puppet/functions.rb'
374
- - ' lib/puppet/graph/simple_graph.rb'
375
- - ' lib/puppet/node/environment.rb'
376
- - ' lib/puppet/provider/group/groupadd.rb'
377
- - ' lib/puppet/provider/group/windows_adsi.rb'
378
- - ' lib/puppet/provider/user/windows_adsi.rb'
379
- - ' lib/puppet/settings.rb'
380
- - ' lib/puppet/settings/environment_conf.rb'
381
- - ' lib/puppet/type.rb'
382
- - ' lib/puppet/util/suidmanager.rb'
383
- - ' lib/puppet/util/windows/adsi.rb'
384
- - ' lib/puppet/util/windows/sid.rb'
385
-
386
- # This cop supports safe auto-correction (--auto-correct).
387
- # Configuration parameters: IgnoredMethods.
388
- # IgnoredMethods: ==, equal?, eql?
389
- Style/ClassEqualityComparison :
390
- Enabled : false
391
-
392
- # This cop supports safe auto-correction (--auto-correct).
393
- Style/ClassMethods :
394
- Exclude :
395
- - ' lib/puppet/util/rdoc/generators/puppet_generator.rb'
396
-
397
360
Style/ClassVars :
398
361
Enabled : false
399
362
400
363
# This cop supports safe auto-correction (--auto-correct).
401
364
Style/ColonMethodCall :
402
365
Enabled : false
403
366
404
- Style/CombinableLoops :
405
- Exclude :
406
- - ' lib/puppet/graph/relationship_graph.rb'
407
- - ' lib/puppet/pops/types/ruby_generator.rb'
408
- - ' lib/puppet/provider/service/init.rb'
409
- - ' lib/puppet/util/rdoc/generators/puppet_generator.rb'
410
-
411
367
# This cop supports safe auto-correction (--auto-correct).
412
368
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
413
369
# SupportedStyles: backticks, percent_x, mixed
@@ -444,9 +400,6 @@ Style/ConditionalAssignment:
444
400
Style/DateTime :
445
401
Enabled : false
446
402
447
- Style/DefWithParentheses :
448
- Enabled : false
449
-
450
403
# Configuration parameters: AllowedConstants.
451
404
Style/Documentation :
452
405
Enabled : false
@@ -469,26 +422,6 @@ Style/DoubleNegation:
469
422
- ' lib/puppet/util/feature.rb'
470
423
- ' lib/puppet/util/windows/adsi.rb'
471
424
472
- # This cop supports safe auto-correction (--auto-correct).
473
- Style/EachWithObject :
474
- Enabled : false
475
-
476
- # This cop supports safe auto-correction (--auto-correct).
477
- Style/EmptyBlockParameter :
478
- Exclude :
479
- - ' lib/puppet/parser/type_loader.rb'
480
-
481
- # This cop supports safe auto-correction (--auto-correct).
482
- Style/EmptyCaseCondition :
483
- Exclude :
484
- - ' lib/puppet/pops/serialization/serializer.rb'
485
- - ' lib/puppet/pops/types/type_calculator.rb'
486
- - ' lib/puppet/settings.rb'
487
- - ' lib/puppet/settings/duration_setting.rb'
488
- - ' lib/puppet/settings/priority_setting.rb'
489
- - ' lib/puppet/settings/ttl_setting.rb'
490
- - ' lib/puppet/type.rb'
491
-
492
425
# This cop supports safe auto-correction (--auto-correct).
493
426
# Configuration parameters: EnforcedStyle.
494
427
# SupportedStyles: empty, nil, both
@@ -526,30 +459,10 @@ Style/Encoding:
526
459
- ' lib/puppet/type/package.rb'
527
460
- ' lib/puppet/util/windows/service.rb'
528
461
529
- # This cop supports safe auto-correction (--auto-correct).
530
- Style/EvenOdd :
531
- Exclude :
532
- - ' lib/puppet/pops/serialization/json.rb'
533
- - ' lib/puppet/pops/types/types.rb'
534
-
535
- # This cop supports safe auto-correction (--auto-correct).
536
- Style/ExpandPathArguments :
537
- Exclude :
538
- - ' lib/puppet/util/libuser.rb'
539
-
540
462
# This cop supports safe auto-correction (--auto-correct).
541
463
Style/ExplicitBlockArgument :
542
464
Enabled : false
543
465
544
- # This cop supports safe auto-correction (--auto-correct).
545
- # Configuration parameters: EnforcedStyle.
546
- # SupportedStyles: each, for
547
- Style/For :
548
- Exclude :
549
- - ' lib/puppet/file_system/uniquefile.rb'
550
- - ' lib/puppet/module_tool/contents_description.rb'
551
- - ' lib/puppet/util/rdoc/generators/puppet_generator.rb'
552
-
553
466
# This cop supports safe auto-correction (--auto-correct).
554
467
# Configuration parameters: EnforcedStyle.
555
468
# SupportedStyles: format, sprintf, percent
@@ -562,6 +475,7 @@ Style/FormatStringToken:
562
475
Enabled : false
563
476
564
477
# This cop supports safe auto-correction (--auto-correct).
478
+ # Applying the safe auto-correct results in util_spec failures.
565
479
Style/GlobalStdStream :
566
480
Exclude :
567
481
- ' lib/puppet/application/apply.rb'
@@ -583,59 +497,19 @@ Style/GlobalVars:
583
497
Style/GuardClause :
584
498
Enabled : false
585
499
586
- # This cop supports unsafe auto-correction (--auto-correct-all).
587
- # Configuration parameters: AllowedReceivers.
588
- Style/HashEachMethods :
589
- Enabled : false
590
-
591
- # Configuration parameters: MinBranchesCount.
592
- Style/HashLikeCase :
593
- Exclude :
594
- - ' lib/puppet/util/command_line/trollop.rb'
595
-
596
500
# This cop supports safe auto-correction (--auto-correct).
597
501
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
598
502
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
599
503
# SupportedShorthandSyntax: always, never, either
600
504
Style/HashSyntax :
601
505
Enabled : false
602
506
603
- # This cop supports unsafe auto-correction (--auto-correct-all).
604
- Style/HashTransformValues :
605
- Exclude :
606
- - ' lib/puppet/functions/group_by.rb'
607
- - ' lib/puppet/parser/scope.rb'
608
- - ' lib/puppet/pops/loader/task_instantiator.rb'
609
- - ' lib/puppet/pops/types/p_type_set_type.rb'
610
- - ' lib/puppet/transaction/report.rb'
611
-
612
- # This cop supports safe auto-correction (--auto-correct).
613
- Style/IdenticalConditionalBranches :
614
- Exclude :
615
- - ' lib/puppet/functions/filter.rb'
616
- - ' lib/puppet/network/http_pool.rb'
617
- - ' lib/puppet/node.rb'
618
- - ' lib/puppet/parser/resource.rb'
619
- - ' lib/puppet/pops/loader/module_loaders.rb'
620
- - ' lib/puppet/pops/types/p_type_set_type.rb'
621
- - ' lib/puppet/type.rb'
622
- - ' lib/puppet/util/feature.rb'
623
-
624
- # This cop supports safe auto-correction (--auto-correct).
625
- # Configuration parameters: AllowIfModifier.
626
- Style/IfInsideElse :
627
- Enabled : false
628
-
629
507
# This cop supports safe auto-correction (--auto-correct).
630
508
Style/IfUnlessModifier :
631
509
Enabled : false
632
510
633
511
# This cop supports safe auto-correction (--auto-correct).
634
- Style/IfUnlessModifierOfIfUnless :
635
- Exclude :
636
- - ' lib/puppet/util/command_line/trollop.rb'
637
-
638
- # This cop supports safe auto-correction (--auto-correct).
512
+ # The auto-correct function introduces testing errors in the evaluating_parser_spec
639
513
Style/IfWithSemicolon :
640
514
Exclude :
641
515
- ' lib/puppet/pops/parser/evaluating_parser.rb'
@@ -644,11 +518,6 @@ Style/IfWithSemicolon:
644
518
Style/ImplicitRuntimeError :
645
519
Enabled : false
646
520
647
- # This cop supports unsafe auto-correction (--auto-correct-all).
648
- Style/InfiniteLoop :
649
- Exclude :
650
- - ' lib/puppet/util/posix.rb'
651
-
652
521
# This cop supports unsafe auto-correction (--auto-correct-all).
653
522
# Configuration parameters: InverseMethods, InverseBlocks.
654
523
Style/InverseMethods :
@@ -665,38 +534,6 @@ Style/InverseMethods:
665
534
- ' lib/puppet/reference/providers.rb'
666
535
- ' lib/puppet/type/file.rb'
667
536
668
- # This cop supports safe auto-correction (--auto-correct).
669
- Style/KeywordParametersOrder :
670
- Exclude :
671
- - ' lib/puppet/http/service/file_server.rb'
672
-
673
- # This cop supports safe auto-correction (--auto-correct).
674
- # Configuration parameters: EnforcedStyle.
675
- # SupportedStyles: line_count_dependent, lambda, literal
676
- Style/Lambda :
677
- Exclude :
678
- - ' lib/puppet/defaults.rb'
679
- - ' lib/puppet/functions/unique.rb'
680
- - ' lib/puppet/graph/relationship_graph.rb'
681
- - ' lib/puppet/http/session.rb'
682
- - ' lib/puppet/pops/lookup/interpolation.rb'
683
- - ' lib/puppet/pops/parser/lexer2.rb'
684
- - ' lib/puppet/provider/aix_object.rb'
685
- - ' lib/puppet/provider/service/upstart.rb'
686
- - ' lib/puppet/transaction.rb'
687
- - ' lib/puppet/util/command_line/puppet_option_parser.rb'
688
- - ' lib/puppet/util/symbolic_file_mode.rb'
689
-
690
- # This cop supports safe auto-correction (--auto-correct).
691
- Style/LineEndConcatenation :
692
- Exclude :
693
- - ' lib/puppet/functions.rb'
694
- - ' lib/puppet/module.rb'
695
- - ' lib/puppet/network/http/api.rb'
696
- - ' lib/puppet/provider/user/directoryservice.rb'
697
- - ' lib/puppet/util/windows/file.rb'
698
- - ' lib/puppet/util/windows/process.rb'
699
-
700
537
# This cop supports safe auto-correction (--auto-correct).
701
538
# Configuration parameters: IgnoredMethods.
702
539
Style/MethodCallWithoutArgsParentheses :
0 commit comments