make phpstan happy, run phpstan on all files on task startup

This commit is contained in:
Andrew Dolgov
2023-10-21 10:02:49 +03:00
parent 6e025103d3
commit 93bb473bce
2 changed files with 15 additions and 10 deletions

View File

@@ -1,5 +1,9 @@
#!/bin/sh
docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan \
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze .
echo All done, RC=$?.
while true; do
inotifywait . -e close_write -r -t 300 | grep -q .php && \
(