Skip to content

Commit 0e2e647

Browse files
committed
Prohibit @author in php files
1 parent e56f86a commit 0e2e647

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/script.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,10 @@ if [[ ! -z "${long_lines}" ]]; then
7070
echo -e "${long_lines}" | perl -pe 's/^(.*)$/Long lines found in \1/'
7171
exit 1
7272
fi
73+
74+
# Prohibit @author in php files.
75+
at_author=$(find . -type "f" -iname "*.php" ! -path "*/vendor/*" -exec egrep --line-number -H "@author" {} \;)
76+
if [[ ! -z "${at_author}" ]]; then
77+
echo -e "${at_author}" | perl -pe 's/^(.*)$/\@author found in \1/'
78+
exit 1
79+
fi

0 commit comments

Comments
 (0)