Skip to content

Commit c63acfe

Browse files
committed
updating pdk to 3.2.0 and pdk validations
1 parent 93f7e22 commit c63acfe

29 files changed

+473
-342
lines changed

Diff for: .devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM puppet/pdk:latest
1+
FROM --platform=linux/amd64 puppet/pdk:latest
22

33
# [Optional] Uncomment this section to install additional packages.
44
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

Diff for: .gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/log/
1717
/pkg/
1818
/spec/fixtures/manifests/
19-
/spec/fixtures/modules/
19+
/spec/fixtures/modules/*
2020
/tmp/
2121
/vendor/
2222
/convert_report.txt
@@ -25,7 +25,13 @@
2525
.project
2626
.envrc
2727
/inventory.yaml
28+
/spec/fixtures/litmus_inventory.yaml
29+
.resource_types
30+
.modules
31+
.task_cache.json
32+
.plan_cache.json
2833
.rerun.json
34+
bolt-debug.log
2935
.librarian
3036
.kitchen
3137
.tmp

Diff for: .pdkignore

+11-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/log/
1717
/pkg/
1818
/spec/fixtures/manifests/
19-
/spec/fixtures/modules/
19+
/spec/fixtures/modules/*
2020
/tmp/
2121
/vendor/
2222
/convert_report.txt
@@ -25,20 +25,26 @@
2525
.project
2626
.envrc
2727
/inventory.yaml
28-
/appveyor.yml
28+
/spec/fixtures/litmus_inventory.yaml
29+
.resource_types
30+
.modules
31+
.task_cache.json
32+
.plan_cache.json
33+
.rerun.json
34+
bolt-debug.log
2935
/.fixtures.yml
3036
/Gemfile
3137
/.gitattributes
38+
/.github/
3239
/.gitignore
33-
/.gitlab-ci.yml
3440
/.pdkignore
3541
/.puppet-lint.rc
3642
/Rakefile
3743
/rakelib/
3844
/.rspec
39-
/.rubocop.yml
40-
/.travis.yml
45+
/..yml
4146
/.yardopts
4247
/spec/
4348
/.vscode/
4449
/.sync.yml
50+
/.devcontainer/

Diff for: .rubocop.yml

+217-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ require:
33
- rubocop-performance
44
- rubocop-rspec
55
AllCops:
6+
NewCops: enable
67
DisplayCopNames: true
7-
TargetRubyVersion: '2.4'
8+
TargetRubyVersion: '2.6'
89
Include:
910
- "**/*.rb"
1011
Exclude:
@@ -111,8 +112,14 @@ Style/MethodCalledOnDoEndBlock:
111112
Enabled: true
112113
Style/StringMethods:
113114
Enabled: true
115+
Bundler/GemFilename:
116+
Enabled: false
114117
Bundler/InsecureProtocolSource:
115118
Enabled: false
119+
Capybara/CurrentPathExpectation:
120+
Enabled: false
121+
Capybara/VisibilityMatcher:
122+
Enabled: false
116123
Gemspec/DuplicatedAssignment:
117124
Enabled: false
118125
Gemspec/OrderedDependencies:
@@ -287,11 +294,9 @@ Performance/UriDefaultParser:
287294
Enabled: false
288295
RSpec/Be:
289296
Enabled: false
290-
RSpec/Capybara/CurrentPathExpectation:
291-
Enabled: false
292297
RSpec/Capybara/FeatureMethods:
293298
Enabled: false
294-
RSpec/Capybara/VisibilityMatcher:
299+
RSpec/ContainExactly:
295300
Enabled: false
296301
RSpec/ContextMethod:
297302
Enabled: false
@@ -331,6 +336,8 @@ RSpec/LeakyConstantDeclaration:
331336
Enabled: false
332337
RSpec/LetBeforeExamples:
333338
Enabled: false
339+
RSpec/MatchArray:
340+
Enabled: false
334341
RSpec/MissingExampleGroupArgument:
335342
Enabled: false
336343
RSpec/MultipleExpectations:
@@ -373,8 +380,6 @@ Style/AccessModifierDeclarations:
373380
Enabled: false
374381
Style/AccessorGrouping:
375382
Enabled: false
376-
Style/AsciiComments:
377-
Enabled: false
378383
Style/BisectedAttrAccessor:
379384
Enabled: false
380385
Style/CaseLikeIf:
@@ -485,35 +490,241 @@ Style/TrailingMethodEndStatement:
485490
Enabled: false
486491
Style/UnpackFirst:
487492
Enabled: false
493+
Capybara/MatchStyle:
494+
Enabled: false
495+
Capybara/NegationMatcher:
496+
Enabled: false
497+
Capybara/SpecificActions:
498+
Enabled: false
499+
Capybara/SpecificFinders:
500+
Enabled: false
501+
Capybara/SpecificMatcher:
502+
Enabled: false
503+
Gemspec/DeprecatedAttributeAssignment:
504+
Enabled: false
505+
Gemspec/DevelopmentDependencies:
506+
Enabled: false
507+
Gemspec/RequireMFA:
508+
Enabled: false
509+
Layout/LineContinuationLeadingSpace:
510+
Enabled: false
511+
Layout/LineContinuationSpacing:
512+
Enabled: false
513+
Layout/LineEndStringConcatenationIndentation:
514+
Enabled: false
515+
Layout/SpaceBeforeBrackets:
516+
Enabled: false
517+
Lint/AmbiguousAssignment:
518+
Enabled: false
519+
Lint/AmbiguousOperatorPrecedence:
520+
Enabled: false
521+
Lint/AmbiguousRange:
522+
Enabled: false
523+
Lint/ConstantOverwrittenInRescue:
524+
Enabled: false
525+
Lint/DeprecatedConstants:
526+
Enabled: false
488527
Lint/DuplicateBranch:
489528
Enabled: false
529+
Lint/DuplicateMagicComment:
530+
Enabled: false
531+
Lint/DuplicateMatchPattern:
532+
Enabled: false
490533
Lint/DuplicateRegexpCharacterClassElement:
491534
Enabled: false
492535
Lint/EmptyBlock:
493536
Enabled: false
494537
Lint/EmptyClass:
495538
Enabled: false
539+
Lint/EmptyInPattern:
540+
Enabled: false
541+
Lint/IncompatibleIoSelectWithFiberScheduler:
542+
Enabled: false
543+
Lint/LambdaWithoutLiteralBlock:
544+
Enabled: false
496545
Lint/NoReturnInBeginEndBlocks:
497546
Enabled: false
547+
Lint/NonAtomicFileOperation:
548+
Enabled: false
549+
Lint/NumberedParameterAssignment:
550+
Enabled: false
551+
Lint/OrAssignmentToConstant:
552+
Enabled: false
553+
Lint/RedundantDirGlobSort:
554+
Enabled: false
555+
Lint/RefinementImportMethods:
556+
Enabled: false
557+
Lint/RequireRangeParentheses:
558+
Enabled: false
559+
Lint/RequireRelativeSelfPath:
560+
Enabled: false
561+
Lint/SymbolConversion:
562+
Enabled: false
498563
Lint/ToEnumArguments:
499564
Enabled: false
565+
Lint/TripleQuotes:
566+
Enabled: false
500567
Lint/UnexpectedBlockArity:
501568
Enabled: false
502569
Lint/UnmodifiedReduceAccumulator:
503570
Enabled: false
571+
Lint/UselessRescue:
572+
Enabled: false
573+
Lint/UselessRuby2Keywords:
574+
Enabled: false
575+
Metrics/CollectionLiteralLength:
576+
Enabled: false
577+
Naming/BlockForwarding:
578+
Enabled: false
504579
Performance/CollectionLiteralInLoop:
505580
Enabled: false
581+
Performance/ConcurrentMonotonicTime:
582+
Enabled: false
583+
Performance/MapCompact:
584+
Enabled: false
585+
Performance/RedundantEqualityComparisonBlock:
586+
Enabled: false
587+
Performance/RedundantSplitRegexpArgument:
588+
Enabled: false
589+
Performance/StringIdentifierArgument:
590+
Enabled: false
591+
RSpec/BeEq:
592+
Enabled: false
593+
RSpec/BeNil:
594+
Enabled: false
595+
RSpec/ChangeByZero:
596+
Enabled: false
597+
RSpec/ClassCheck:
598+
Enabled: false
599+
RSpec/DuplicatedMetadata:
600+
Enabled: false
601+
RSpec/ExcessiveDocstringSpacing:
602+
Enabled: false
603+
RSpec/FactoryBot/ConsistentParenthesesStyle:
604+
Enabled: false
605+
RSpec/FactoryBot/FactoryNameStyle:
606+
Enabled: false
607+
RSpec/FactoryBot/SyntaxMethods:
608+
Enabled: false
609+
RSpec/IdenticalEqualityAssertion:
610+
Enabled: false
611+
RSpec/NoExpectationExample:
612+
Enabled: false
613+
RSpec/PendingWithoutReason:
614+
Enabled: false
615+
RSpec/Rails/AvoidSetupHook:
616+
Enabled: false
617+
RSpec/Rails/HaveHttpStatus:
618+
Enabled: false
619+
RSpec/Rails/InferredSpecType:
620+
Enabled: false
621+
RSpec/Rails/MinitestAssertions:
622+
Enabled: false
623+
RSpec/Rails/TravelAround:
624+
Enabled: false
625+
RSpec/RedundantAround:
626+
Enabled: false
627+
RSpec/SkipBlockInsideExample:
628+
Enabled: false
629+
RSpec/SortMetadata:
630+
Enabled: false
631+
RSpec/SubjectDeclaration:
632+
Enabled: false
633+
RSpec/VerifiedDoubleReference:
634+
Enabled: false
635+
Security/CompoundHash:
636+
Enabled: false
637+
Security/IoMethods:
638+
Enabled: false
506639
Style/ArgumentsForwarding:
507640
Enabled: false
641+
Style/ArrayIntersect:
642+
Enabled: false
508643
Style/CollectionCompact:
509644
Enabled: false
645+
Style/ComparableClamp:
646+
Enabled: false
647+
Style/ConcatArrayLiterals:
648+
Enabled: false
649+
Style/DataInheritance:
650+
Enabled: false
651+
Style/DirEmpty:
652+
Enabled: false
510653
Style/DocumentDynamicEvalDefinition:
511654
Enabled: false
655+
Style/EmptyHeredoc:
656+
Enabled: false
657+
Style/EndlessMethod:
658+
Enabled: false
659+
Style/EnvHome:
660+
Enabled: false
661+
Style/FetchEnvVar:
662+
Enabled: false
663+
Style/FileEmpty:
664+
Enabled: false
665+
Style/FileRead:
666+
Enabled: false
667+
Style/FileWrite:
668+
Enabled: false
669+
Style/HashConversion:
670+
Enabled: false
671+
Style/HashExcept:
672+
Enabled: false
673+
Style/IfWithBooleanLiteralBranches:
674+
Enabled: false
675+
Style/InPatternThen:
676+
Enabled: false
677+
Style/MagicCommentFormat:
678+
Enabled: false
679+
Style/MapCompactWithConditionalBlock:
680+
Enabled: false
681+
Style/MapToHash:
682+
Enabled: false
683+
Style/MapToSet:
684+
Enabled: false
685+
Style/MinMaxComparison:
686+
Enabled: false
687+
Style/MultilineInPatternThen:
688+
Enabled: false
512689
Style/NegatedIfElseCondition:
513690
Enabled: false
691+
Style/NestedFileDirname:
692+
Enabled: false
514693
Style/NilLambda:
515694
Enabled: false
695+
Style/NumberedParameters:
696+
Enabled: false
697+
Style/NumberedParametersLimit:
698+
Enabled: false
699+
Style/ObjectThen:
700+
Enabled: false
701+
Style/OpenStructUse:
702+
Enabled: false
703+
Style/OperatorMethodCall:
704+
Enabled: false
705+
Style/QuotedSymbols:
706+
Enabled: false
516707
Style/RedundantArgument:
517708
Enabled: false
709+
Style/RedundantConstantBase:
710+
Enabled: false
711+
Style/RedundantDoubleSplatHashBraces:
712+
Enabled: false
713+
Style/RedundantEach:
714+
Enabled: false
715+
Style/RedundantHeredocDelimiterQuotes:
716+
Enabled: false
717+
Style/RedundantInitialize:
718+
Enabled: false
719+
Style/RedundantLineContinuation:
720+
Enabled: false
721+
Style/RedundantSelfAssignmentBranch:
722+
Enabled: false
723+
Style/RedundantStringEscape:
724+
Enabled: false
725+
Style/SelectByRegexp:
726+
Enabled: false
727+
Style/StringChars:
728+
Enabled: false
518729
Style/SwapValues:
519730
Enabled: false

0 commit comments

Comments
 (0)