fix unknown Lempar.php error on packages + be able to scan extensions and avoid phpunit APIs unknown

This commit is contained in:
odain
2026-01-05 10:46:55 +01:00
parent 18168b396c
commit 4417c7d09c

View File

@@ -26,10 +26,13 @@ parameters:
analyseAndScan:
# This file generates "unignorable errors" for the baseline due to its format, so we don't have any other choice than to exclude it.
# But mind that it will prevent PHPStan from warning us about PHP syntax errors in this file.
- ../../../core/oql/build/PHP/Lempar.php
- ../../../tests/php-unit-tests/unittestautoload.php
## ignore lexer code present on iTop clones (not in packages)
- ../../../core/oql/build/PHP/Lempar.php (?)
## add phpunit APIs to spare errors like unknown assertEquals
## usefull to scan extension installed in env-production/myextension
- ../../../tests/php-unit-tests/unittestautoload.php (?)
#- ../../../data # Left and commented on purpose to show that we want to analyse the generated cache files
@@ -42,4 +45,4 @@ parameters:
- ../../../env-toolkit (?) # Irrelevent as it will either already be in `env-production` or might be desynchronized from `env-production` (for local run only, not useful in the CI)
#- ../../../tests (?) # Exclude tests for now
- ../../../toolkit (?) # Exlclude toolkit for now
- ../../../toolkit (?) # Exclude toolkit for now