-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector.php
53 lines (50 loc) · 1.49 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
])
->withParallel(120, 16, 10)
->withPhpLevel(level: 83)
->withPreparedSets(
codeQuality: true,
codingStyle: true,
deadCode: true,
naming: false, /* @experimental */
privatization: false, /* @experimental */
strictBooleans: true,
typeDeclarations: true,
earlyReturn: true,
instanceOf: true,
twig: true,
carbon: false, /* @experimental */
rectorPreset: true, /* @experimental */
doctrineCodeQuality: true,
symfonyCodeQuality: true,
symfonyConfigs: true,
phpunitCodeQuality: true,
)
->withSets([
SetList::GMAGICK_TO_IMAGICK,
LevelSetList::UP_TO_PHP_83,
SymfonySetList::SYMFONY_64,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
])
->withAttributesSets(
symfony: true,
doctrine: true,
phpunit: true,
sensiolabs: true,
)
->withSkip([
DisallowedEmptyRuleFixerRector::class,
NewlineAfterStatementRector::class,
])
;