update baseline

This commit is contained in:
Dennis Eichhorn 2020-03-02 22:48:36 +01:00
parent d232ba5944
commit a62308ad18
3 changed files with 16 additions and 806 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,9 +37,13 @@ parameters:
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'
- '#^Strict comparison using === between[.]*#'
- '#[.]*jsonSerialize\(\) has no return typehint specified#'
- '#[.]*unserialize\(\) has parameter [.]* with no typehint specified#'
- '#expects phpOMS\\Algorithm\\PathFinding\\JumpPointNode\|null, phpOMS\\Algorithm\\PathFinding\\Node\|null given#'
- '#should return array<phpOMS\\Algorithm\\PathFinding\\Node> but returns array<int, phpOMS\\Algorithm\\PathFinding\\Node\|null#'
- '#^Offset .* does not exist on array.*#'
- '#.*unserialize\(\) has parameter .* with no typehint specified#'
-
message: "#^Cannot call method getTimestamp\\(\\) on DateTime\\|null\\.$#"
path: *Algorithm/JobScheduling/Weighted.php
-
message: '#Binary operation "\-" between string and int results in an error#'
path: *Matrix/Matrix.php

View File

@ -3,10 +3,10 @@
mkdir -p Build/test
php phpcs.phar ./ --standard="Build/Config/phpcs.xml"
php phpstan.phar analyse --autoload-file=phpOMS/Autoloader.php -l 8 -c Build/Config/phpstan.neon ./
./vendor/bin/phpstan analyse --autoload-file=phpOMS/Autoloader.php -l 8 -c Build/Config/phpstan.neon ./
php phpcs.phar ./ --standard="Build/Config/phpcs.xml" -s --report-junit=Build/test/junit_phpcs.xml
php phpstan.phar analyse --autoload-file=phpOMS/Autoloader.php -l 8 -c Build/Config/phpstan.neon --error-format=prettyJson ./ > Build/test/phpstan.json
./vendor/bin/phpstan analyse --autoload-file=phpOMS/Autoloader.php -l 8 -c Build/Config/phpstan.neon --error-format=prettyJson ./ > Build/test/phpstan.json
# Remove empty lines and lines with warnings which corrupt the json format
sed -i '/^$/d' Build/test/phpstan.json