Upgrade phpstan to version 0.10
- Add level and paths to configuration file Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
0a254c6989
commit
ce94e19339
@ -89,7 +89,7 @@
|
||||
"bacon/bacon-qr-code": "^1.0",
|
||||
"samyoul/u2f-php-server": "^1.1",
|
||||
"phpmyadmin/coding-standard": "^0.3",
|
||||
"phpstan/phpstan": "^0.9.2"
|
||||
"phpstan/phpstan": "^0.10.3"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
parameters:
|
||||
level: 0
|
||||
paths:
|
||||
- %rootDir%/../../../
|
||||
bootstrap: %rootDir%/../../../test/bootstrap-phpstan.php
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
ignoreErrors:
|
||||
@ -27,8 +30,6 @@ parameters:
|
||||
- '#Undefined variable: \$(unsaved_values|is_upload)#'#tbl_change.php
|
||||
- '#Undefined variable: \$max_upload_size#'#tbl_import.php
|
||||
- '#Undefined variable: \$(repobase|fullrevision|revision|repobranchbase|branch)#'#Footer.php
|
||||
|
||||
|
||||
excludes_analyse:
|
||||
- %rootDir%/../../../test/EnvironmentTest.php
|
||||
- %rootDir%/../../../test/libraries/FilesTest.php
|
||||
|
||||
@ -3,5 +3,4 @@
|
||||
cd $(dirname $0)/../
|
||||
echo "Running in : $(pwd)"
|
||||
|
||||
# 1G is a litte high, should use < 512M (less ram + a lot of code = bigger risk of crash)
|
||||
./vendor/bin/phpstan analyse ./ --configuration=phpstan.neon --level=0 --memory-limit=1G
|
||||
./vendor/bin/phpstan analyse
|
||||
|
||||
Loading…
Reference in New Issue
Block a user