corvée(outils) importe divers configurations

- phpactor
- php cs fixer
- phpstan
This commit is contained in:
gcch 2025-12-15 15:34:50 +01:00
commit 4720c46ff8
5 changed files with 316 additions and 28 deletions

View file

@ -1,22 +1,51 @@
parameters:
parallel:
maximumNumberOfProcesses: 8
level: 6
paths:
- web/app/themes/haiku-atelier-2024
scanDirectories:
- vendor
- web/app
- web/vendor
- web/wp
scanFiles:
- .php-cs-fixer.dist.php
- web/index.php
- web/wp-config.php
# Utilise la version de développement de PHPStan
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
excludePaths:
analyse:
- web/app/themes/la-fille-davril/vendor
analyseAndScan:
- web/app/themes/twentytwentyfour
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 werent 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