Use phpstan config

This commit is contained in:
Dennis Eichhorn 2018-03-30 13:31:41 +02:00
parent 7efa01da8d
commit a7fbe9683d
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,9 @@
parameters:
ignoreErrors:
- '#Access to protected property Web\WebApplication::\$[a-zA-Z0-9_]+#'
- '#Calling method prepare() on possibly null value of type PDO|null.#'
- '#Calling method lastInsertId() on possibly null value of type PDO|null.#'
- '#Class PHPUnit\Framework\TestCase not found and could not be autoloaded.#'
fileExtensions:
- php
excludes_analyse:

View File

@ -8,7 +8,7 @@ php ${TOOLS_PATH}/phpunit.phar -v --configuration ${ROOT_PATH}/tests/phpunit_def
echo "Start php static inspection"
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 ${ROOT_PATH}/phpOMS > ${INSPECTION_PATH}/Framework/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 ${ROOT_PATH}/Modules > ${INSPECTION_PATH}/Modules/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 ${ROOT_PATH}/Model > ${INSPECTION_PATH}/Model/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 ${ROOT_PATH}/Web > ${INSPECTION_PATH}/Web/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 -c ${BUILD_PATH}/Config/phpstan.neon ${ROOT_PATH}/phpOMS > ${INSPECTION_PATH}/Framework/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 -c ${BUILD_PATH}/Config/phpstan.neon ${ROOT_PATH}/Modules > ${INSPECTION_PATH}/Modules/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 -c ${BUILD_PATH}/Config/phpstan.neon ${ROOT_PATH}/Model > ${INSPECTION_PATH}/Model/phpstan.log
php ${TOOLS_PATH}/phpstan.phar analyse --autoload-file=${ROOT_PATH}/phpOMS/Autoloader.php -l 7 -c ${BUILD_PATH}/Config/phpstan.neon ${ROOT_PATH}/Web > ${INSPECTION_PATH}/Web/phpstan.log