From fd626b7c6ba7981a12befa6be29f2857e40f5413 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 1 Dec 2018 20:51:23 +0100 Subject: [PATCH] Add phpcs output --- Hooks/delegator.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index 8bb2632..38560fd 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -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