/
rector.php
36 lines (29 loc) · 1.07 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
declare(strict_types=1);
use App\Utils\Rector\CommonRectorConfig;
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
use Skyeng\MarketingCmsBundle\Utils\Rector\Set\MarketingCmsSetList;
return static function (RectorConfig $rectorConfig): void {
CommonRectorConfig::configure($rectorConfig);
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81,
SymfonyLevelSetList::UP_TO_SYMFONY_54,
MarketingCmsSetList::UP_TO_LAST_VER,
SetList::CODING_STYLE,
SetList::CODE_QUALITY,
SetList::TYPE_DECLARATION,
SetList::DEAD_CODE,
SetList::PRIVATIZATION,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
DoctrineSetList::DOCTRINE_CODE_QUALITY,
]);
};