Prohibit @author in php files

This commit is contained in:
Zach Borboa
2015-11-10 08:02:54 -08:00
parent e56f86a198
commit 0e2e64734e
+7
View File
@@ -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