mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
38 lines
977 B
PHP
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,
|
|
])
|
|
;
|