From 0e2e64734eab54dacefdbe7854ebcb6937d82c11 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Tue, 10 Nov 2015 08:02:54 -0800 Subject: [PATCH] Prohibit @author in php files --- tests/script.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/script.sh b/tests/script.sh index 39cf868..c911357 100755 --- a/tests/script.sh +++ b/tests/script.sh @@ -70,3 +70,10 @@ if [[ ! -z "${long_lines}" ]]; then echo -e "${long_lines}" | perl -pe 's/^(.*)$/Long lines found in \1/' exit 1 fi + +# Prohibit @author in php files. +at_author=$(find . -type "f" -iname "*.php" ! -path "*/vendor/*" -exec egrep --line-number -H "@author" {} \;) +if [[ ! -z "${at_author}" ]]; then + echo -e "${at_author}" | perl -pe 's/^(.*)$/\@author found in \1/' + exit 1 +fi