Force lint failures on any warning, and display affected filename

This commit is contained in:
2014-09-14 18:21:23 +01:00
parent 8bfe92377b
commit 5cbe5313d5

View File

@@ -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" 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 final_ret=1
fi fi
puppet-lint $tmpfile puppet-lint --fail-on-warnings --with-filename $tmpfile
rc=$? rc=$?
if [[ $rc != 0 ]]; then if [[ $rc != 0 ]]; then
if [[ $warned = 0 ]]; then if [[ $warned = 0 ]]; then