From 12b78379653b105da5e7925c439c7e13357a72db Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 24 May 2012 13:01:54 +0200 Subject: [PATCH] add script to run puppet-lint --- puppet_lint_run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 puppet_lint_run.sh 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}" {} \; -- 2.39.5