Update rector config for Symfony container and code/dead code levels

- Added Symfony container XML and PHP paths to the configuration.
- Set levels for dead code, code quality, type coverage, docblocks, and coding style.
This commit is contained in:
2025-11-04 09:55:29 +01:00
parent 6999919d9f
commit a113360ccf

View File

@@ -19,5 +19,10 @@ use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure()
->withPaths(['./src', './docs', './rector.php'])
->withComposerBased(twig: true, doctrine: true, symfony: true)
->withSets([SetList::PHP_80, SetList::PHP_81, SetList::PHP_82, SetList::PHP_83, SetList::PHP_84])
;
->withSymfonyContainerXml(__DIR__.'/var/cache/dev/App_KernelDevDebugContainer.xml')
->withSymfonyContainerPhp(__DIR__.'/var/cache/dev/App_KernelDevDebugContainer.php')
->withDeadCodeLevel(0)
->withCodeQualityLevel(0)
->withTypeCoverageLevel(0)
->withTypeCoverageDocblockLevel(0)
->withCodingStyleLevel(0);