Files
archived-recipes-contrib/kocal/symfony-app-pack/1.0/rector.php
Hugo Alliaume cdc5b03530 [Kocal/SymfonyAppPack] Add recipe (#1936)
* [Kocal/SymfonyAppPack] Add recipe

* Remove Makefile from copy-from-recipe
2026-02-11 03:01:04 +04:00

38 lines
977 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Symfony\CodeQuality\Rector\Class_\ControllerMethodInjectionToConstructorRector;
return RectorConfig::configure()
->withParallel()
->withCache(__DIR__ . '/tools/.cache/rector')
->withPaths([
__DIR__ . '/config',
__DIR__ . '/public',
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/tools',
])
->withPhpSets()
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
instanceOf: true,
earlyReturn: true,
phpunitCodeQuality: true,
doctrineCodeQuality: true,
symfonyCodeQuality: true,
)
->withSkip([
__DIR__ . '/config/bundles.php',
__DIR__ . '/config/reference.php',
__DIR__ . '/tools/.cache',
ControllerMethodInjectionToConstructorRector::class,
])
;