Lint is the name given to a program that searches through code for non-ideal or nonportable syntax. The
puppet-lint tool is a Lint tool for Puppet code. It will go through your Puppet code and point out the code that has the potential to be a problem. By default,
puppet-lint uses the style-guide guidelines and will report problems such as lines that have more than 80 characters.
puppet-lint tool is a Ruby gem and can be installed using the
gem tool or as a package, depending on your distribution (for instance, Fedora calls this package
rubygem-puppet-lint). To install it using Puppet, run the following
puppet resource command:
$ sudo puppet resource package puppet-lint ensure=installed provider=gem Notice: /Package[puppet-lint]/ensure: ...