51 lines
1.9 KiB
Text
Executable file
51 lines
1.9 KiB
Text
Executable file
# Utilise la version de développement de PHPStan
|
||
includes:
|
||
- phar://phpstan.phar/conf/bleedingEdge.neon
|
||
|
||
parameters:
|
||
# When set to true, it reports use of dynamic properties as undefined.
|
||
checkDynamicProperties: true
|
||
checkExplicitMixedMissingReturn: true
|
||
# When set to true, it reports function and method calls with incorrect name case.
|
||
checkFunctionNameCase: true
|
||
# When set to true, it reports references to built-in classes with incorrect name case.
|
||
checkInternalClassCaseSensitivity: true
|
||
# When set to true, it reports return typehints that could be narrowed down because some of the listed types are never returned from a public or protected method.
|
||
checkTooWideReturnTypesInProtectedAndPublicMethods: true
|
||
# When set to true, it reports properties with native types that weren’t initialized in the class constructor.
|
||
checkUninitializedProperties: false
|
||
reportUnmatchedIgnoredErrors: false
|
||
# When set to true, it reports violations of parameter type contravariance and return type covariance.
|
||
reportMaybesInMethodSignatures: true
|
||
# By default PHPStan reports wrong type in @var tag only for native types on the right side of =. With reportWrongPhpDocTypeInVarTag set to true it will consider PHPDoc types too.
|
||
reportWrongPhpDocTypeInVarTag: true
|
||
# Setting treatPhpDocTypesAsCertain to false relaxes some of the rules around type-checking.
|
||
treatPhpDocTypesAsCertain: true
|
||
|
||
parallel:
|
||
jobSize: 20
|
||
maximumNumberOfProcesses: 32
|
||
minimumNumberOfJobsPerProcess: 2
|
||
|
||
level: max
|
||
|
||
scanDirectories:
|
||
- config
|
||
- vendor
|
||
- web/app
|
||
- web/vendor
|
||
- web/wp
|
||
|
||
scanFiles:
|
||
- .php-cs-fixer.dist.php
|
||
- web/index.php
|
||
- web/wp-config.php
|
||
|
||
paths:
|
||
- web/app/themes/haiku-atelier-2024
|
||
|
||
excludePaths:
|
||
analyseAndScan:
|
||
- web/app/db.php (?)
|
||
- web/app/languages
|
||
- web/app/themes/twentytwentyfour
|