From 5cbe5313d5628666623cb1e4a31e87315e162557 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sun, 14 Sep 2014 18:21:23 +0100 Subject: [PATCH] Force lint failures on any warning, and display affected filename --- pre-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre-receive b/pre-receive index a612e58..05fc24e 100755 --- a/pre-receive +++ b/pre-receive @@ -68,7 +68,7 @@ while read oldrev newrev refname; do echo -e "\e[0;31m'puppet parser validate' failed on $puppetmodule - push denied. Run tests locally and confirm they pass before pushing. \e[0m" final_ret=1 fi - puppet-lint $tmpfile + puppet-lint --fail-on-warnings --with-filename $tmpfile rc=$? if [[ $rc != 0 ]]; then if [[ $warned = 0 ]]; then