mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
Add phpcs output
This commit is contained in:
parent
cdbe109800
commit
1fe7a0291b
|
|
@ -49,6 +49,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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user