updating pre-commit
This commit is contained in:
parent
0c8a6c410d
commit
27032f433a
@ -27,6 +27,6 @@ modified="git diff --diff-filter=M --name-only --cached | grep \".php$\""
|
||||
ignore="resources/lang,resources/views,bootstrap/helpers,database/migrations,bin"
|
||||
phpcs="vendor/bin/phpcs --report=code --colors --report-width=80 --ignore=${ignore}"
|
||||
|
||||
__run "1/1" "code sniffer" "${modified} | xargs -r ${phpcs}"
|
||||
# __run "2/3" "php lint" "${modified} | xargs -r php -l"
|
||||
__run "1/2" "php lint" "${modified} | xargs -r php -l"
|
||||
__run "2/2" "code sniffer" "${modified} | xargs -r ${phpcs}"
|
||||
# __run "3/3" "phpstan" "${modified} | xargs -r vendor/bin/phpstan analyse"
|
||||
|
Loading…
x
Reference in New Issue
Block a user