librenms/phpstan.neon
Jellyfrog 7e8e11f097
phpstan: new baseline (#15015)
* phpstan: new baseline

* wip
2023-04-28 17:13:55 +02:00

45 lines
890 B
Plaintext

includes:
- phpstan-baseline.neon
- tests/phpstan/ignore-by-php-version.neon.php
- vendor/nunomaduro/larastan/extension.neon
- vendor/phpstan/phpstan-mockery/extension.neon
parameters:
paths:
- app
- config
- database
- LibreNMS
- resources
- tests
excludePaths:
- tests/phpstan/
scanDirectories:
- includes
level: 5
checkMissingIterableValueType: false
treatPhpDocTypesAsCertain: false
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
checkModelProperties: true
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- '#Unsafe usage of new static#'
parallel:
processTimeout: 300.0