Skip to content

Puppet Lint errors and fixes

Milos Kleint edited this page Oct 11, 2015 · 2 revisions

If you have puppet-lint setup on your computer, whenever your Puppet file is saved, puppet-lint is executed on the file and any warnings or errors are shown directly in the editor.

(Please note that the puppet-lint execution was never tested on Windows. Please file an issue if it doesn't work)

For some lint errors/warnings the editor provides quick fixes. These are denoted by a small lightbulb icon. Triggering the Fix code... action (from main menu or via shortcut) will fix the problem. lint fixes lint fixes

You can configure what lint rules to include in your module in the Puppet project customizer ( project's Properties popup menu item). Also by default your <project_directory>/Rakefile is parsed and the puppet-lint configuration defined there is used automatically. You can override that behaviour in the project customizer as well. lint customizer

Clone this wiki locally