From 5a058875baf84bcd3ad72958731e55c27ed71b8b Mon Sep 17 00:00:00 2001 From: Rovanion Luckey Date: Fri, 8 Feb 2019 13:31:47 +0100 Subject: [PATCH] Fix puppet-lint formatting to use line instead of linenumber. It's use has apparently been deprecated for a while and was finally removed in August 2016: https://github.com/rodjek/puppet-lint/issues/539 --- hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 378ecdb..16f8b02 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -78,7 +78,7 @@ do fi # puppet-lint check - puppet-lint $PUPPETLINT_FLAGS --log-format "${file}:%{linenumber} %{KIND} - %{message}" $TMPFILE 2> /dev/null + puppet-lint $PUPPETLINT_FLAGS --log-format "${file}:%{line} %{KIND} - %{message}" $TMPFILE 2> /dev/null if [[ $? -ne 0 ]] ; then STATUS=2 fi