Add phpcs output

This commit is contained in:
Dennis Eichhorn 2018-12-01 20:51:23 +01:00
parent 1fe7a0291b
commit fd626b7c6b

View File

@ -47,6 +47,7 @@ for FILE in $(git diff --cached --name-only); do
if [[ $PHP_SYNTAX = 2 ]]; then
echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2
$(php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p "$FILE")
exit 1
fi