Analyse less code, optimise run.

This commit is contained in:
James Cole 2020-07-31 19:15:26 +02:00
parent 749236bc8d
commit d2fd858d18
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 4 additions and 5 deletions

View File

@ -10,12 +10,9 @@ parameters:
- '#is neither abstract nor final#'
paths:
- ../app
- ../config
- ../database
- ../resources
- ../routes
- ../bootstrap/app.php
# The level 8 is the highest level. original was 5
level: 0

View File

@ -1,7 +1,9 @@
#!/usr/bin/env bash
# Install composer packages
composer install --no-suggest --no-scripts --no-ansi
composer install --no-suggest --no-scripts --no-ansi &> /dev/null
# Do static code analysis.
./vendor/bin/phpstan analyse -c .ci/phpstan.neon > phpstan.txt
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --errorFormat=raw > phpstan.txt
exit 0