Add PHPSTAN config
phpcs-errors:226 phpunit-status:successful phpstan-errors:202
This commit is contained in:
Submodule classes/MDAllowedValueSets updated: 59223ad778...bbaa799fa5
Submodule classes/MD_STD updated: b8d8be54b9...bac86627e2
16
phpstan.neon
Normal file
16
phpstan.neon
Normal file
@ -0,0 +1,16 @@
|
||||
parameters:
|
||||
level: 8
|
||||
paths:
|
||||
- csv.php
|
||||
- index.php
|
||||
- index3.php
|
||||
- index6.php
|
||||
- upload.php
|
||||
- zipit.php
|
||||
- classes
|
||||
- functions
|
||||
- inc
|
||||
- tests
|
||||
ignoreErrors:
|
||||
- '#Class MDDBConnectionImpossible not found.#'
|
||||
- '#Class MDMysqliExpectedError not found.#'
|
@ -38,3 +38,9 @@ if [ "$PHPUNIT_EC" = "1" ]; then
|
||||
else
|
||||
echo "phpunit-status:successful";
|
||||
fi
|
||||
|
||||
PHPSTAN_TEST_BASE_DIR="/var/www/vhosts/museum-digital.de/sandkasten.museum-digital.de"
|
||||
PHPSTAN_CONF_BASE_DIR="/var/www/vhosts/museum-digital.de/csvxml.imports.museum-digital.org"
|
||||
|
||||
PHPSTAN_ERRORS=$(php $PHPSTAN_TEST_BASE_DIR/vendor/bin/phpstan analyze --error-format raw -c $PHPSTAN_CONF_BASE_DIR/phpstan.neon -l 8 | wc -l)
|
||||
echo "phpstan-errors:$PHPSTAN_ERRORS"
|
||||
|
Reference in New Issue
Block a user