Update syntax.sh

This commit is contained in:
Dennis Eichhorn 2018-01-31 19:11:59 +01:00 committed by GitHub
parent 2459f480f3
commit f1cc4bcc0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ if [[ "$FILE" =~ ^.+(php|inc|module|install|test)$ ]]; then
fi
# phpmd
./vendor/bin/phpmd --standard="./Build/Config/phpmd.xml" --encoding=utf-8 -n -p $FILE
./vendor/bin/phpmd $FILE ./Build/Config/phpmd.xml --exclude *tests* --minimumpriority 1
if [ $? -ne 0 ]; then
echo -e "\e[1;31m\tMess Detector error.\e[0m" >&2
exit 1