mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 19:58:41 +00:00
Add phpcs output
This commit is contained in:
parent
1fe7a0291b
commit
fd626b7c6b
|
|
@ -47,6 +47,7 @@ for FILE in $(git diff --cached --name-only); do
|
||||||
|
|
||||||
if [[ $PHP_SYNTAX = 2 ]]; then
|
if [[ $PHP_SYNTAX = 2 ]]; then
|
||||||
echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user