Created
June 27, 2013 16:08
-
-
Save maxlinc/5877775 to your computer and use it in GitHub Desktop.
Puppet Linting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'puppet-lint' | |
PuppetLint.configuration.log_format = '%{path}:%{linenumber} - %{KIND}: %{message}' | |
PuppetLint.configuration.send('disable_80chars') | |
task :lint do | |
linter = PuppetLint.new | |
PuppetLint.configuration.send("disable_documentation") | |
Dir['manifests/**/*.pp'].each do |pp| | |
linter.file = pp | |
linter.run | |
end | |
fail if linter.errors? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment