From bce7b869c2db3cc10535f0e4abc3603c4bff577f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Aug 2023 13:46:58 +0200 Subject: [PATCH] Test phpstan --- build/phpstan/README | 2 +- phpstan.neon | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/phpstan/README b/build/phpstan/README index c39bca6c2eb..c64aa5a7559 100644 --- a/build/phpstan/README +++ b/build/phpstan/README @@ -15,5 +15,5 @@ composer require --dev phpstan/phpstan Execute: cd git/dolibarr mv htdocs/custom /tmp/ -php8.2 ../phpstan/htdocs/includes/bin/phpstan -v analyze -a build/phpstan/bootstrap.php htdocs/commande/class -l0 --memory-limit 12G +php8.2 ../phpstan/htdocs/includes/bin/phpstan -v analyze -a build/phpstan/bootstrap.php --memory-limit 4G --error-format=table htdocs/commande/class mv /tmp/custom htdocs diff --git a/phpstan.neon b/phpstan.neon index 351164063e7..c55b9327da1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,9 +1,11 @@ parameters: customRulesetUsed: true + level: 0 fileExtensions: - php paths: - htdocs + - scripts excludePaths: analyseAndScan: - htdocs/custom @@ -50,7 +52,7 @@ parameters: cache: nodesByFileCountMax: 512 nodesByStringCountMax: 512 - reportUnmatchedIgnoredErrors: true + reportUnmatchedIgnoredErrors: false universalObjectCratesClasses: - stdClass - SimpleXMLElement