Add PHPSTAN config
phpcs-errors:226 phpunit-status:successful phpstan-errors:202
This commit is contained in:
1 parent
34c475f3d6
commit
b61b00c540
4 files changed
+24
-2
No files matched your search
Submodule classes/MDAllowedValueSets updated: 59223ad778...bbaa799fa5.
+1
-1
Submodule classes/MD_STD updated: b8d8be54b9...bac86627e2.
@@ -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