Kumora/rector.php
Melaine Gérard 6e140f84f7
Some checks failed
Apply PHP CS Fixer / php-cs-fixer (push) Failing after 12s
CI / build-test (push) Failing after 9s
rector / Rector (push) Failing after 21s
💄 Ajout phpstan + rector
2025-01-16 21:42:05 +01:00

33 lines
1002 B
PHP

<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml');
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82,
SymfonySetList::SYMFONY_71,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
SetList::DEAD_CODE,
SetList::CODE_QUALITY,
SetList::PHP_82,
DoctrineSetList::DOCTRINE_CODE_QUALITY,
]);
$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/migrations',
]);
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
};