From: Holger Levsen Date: Thu, 24 May 2012 11:01:54 +0000 (+0200) Subject: add script to run puppet-lint X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=12b78379653b105da5e7925c439c7e13357a72db;p=profitbricks%2Fjenkins-build-scripts.git add script to run puppet-lint --- diff --git a/puppet_lint_run.sh b/puppet_lint_run.sh new file mode 100644 index 0000000..ccf0c2a --- /dev/null +++ b/puppet_lint_run.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# copyright 2012 Holger Levsen GPL2 licenced, holger@layer-acht.org + +for file in $(find . -iname '*.pp'); do + puppet parser validate --color false --render-as s --modulepath=modules $file || exit 1; +done; + +find . -iname *.pp -exec puppet-lint --no-80chars-check --log-format "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" {} \;