puppet-lint
Checks
Control Comments
Developer
Tutorial
API Reference
Token Reference
Community Plugins
Changelog
Issues
Checks
Click on any of the following error messages to learn more about the check and how to resolve it.
Spacing, Indentation & Whitespace
“two-space soft tabs not used”
“tab character found”
“trailing whitespace found”
“line has more than 80 characters”
“line has more than 140 characters”
”=> is not properly aligned”
Comments
”// comment found”
”/* */ comment found”
Quoting
“double quoted string containing no variables”
“variable not enclosed in {}”
“string containing only a variable”
“single quoted string containing a variable found”
“quoted boolean value found”
“puppet:// URL without modules/ found”
Resources
“unquoted resource title”
“ensure found on line but it’s not the first attribute”
“symlink target specified in ensure attr”
“mode should be represented as a 4 digit octal value or symbolic mode”
“unquoted file mode”
“duplicate parameter found in resource”
Conditionals
“selector inside resource block”
“case statement without a default case”
Classes
“foo::bar not in autoload module layout”
“right-to-left (<-) relationship”
“class defined inside a class”
“define defined inside a class”
“class inherits across namespaces”
“optional parameter listed before required parameter”
“class inheriting from params class”
“foo::bar-baz contains a dash”
“arrow should be on right operand’s line”
Variables
“variable is lowercase”
“variable contains a dash”
“top-scope variable being used without an explicit namespace”
Documentation
“foo::bar not documented”
Nodes
“unquoted node name found”