The pdk validate command

The PDK provides pdk validate to check both syntax and style. Syntax checks make sure that your code can compile, and that you're not missing things such as commas or closing braces in manifests or JSON metadata. Syntax checks can also be performed manually on manifests with puppet parser validate. Style checking looks at the code to make sure that it adheres to a standard style guide. Puppet-lint is used to provide style checks to Puppet, and all of the rules can be found at http://puppet-lint.com/. When a module is healthy, the PDK will return check marks against all tasks:

$ pdk validatepdk (INFO): Running all available validators...pdk (INFO): Using Ruby 2.4.4pdk (INFO): Using Puppet 5.5.1[] Checking metadata ...

Get Mastering Puppet 5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.