mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Test phpstan
This commit is contained in:
parent
fc94e39d58
commit
bce7b869c2
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user