-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathrector.php
37 lines (34 loc) · 1.01 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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\TwigSetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/app',
__DIR__ . '/db',
__DIR__ . '/htdocs',
__DIR__ . '/sources',
__DIR__ . '/tests',
])
->withSkip([
__DIR__ . '/htdocs/cache',
])
->withPhp74Sets()
->withTypeCoverageLevel(10)
->withDeadCodeLevel(10)
->withCodeQualityLevel(10)
->withImportNames(true, true, false)
->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/AppKernelDevDebugContainer.xml')
->withSets([
SymfonySetList::SYMFONY_44,
SymfonySetList::SYMFONY_50,
SymfonySetList::SYMFONY_51,
SymfonySetList::SYMFONY_52,
SymfonySetList::SYMFONY_53,
SymfonySetList::SYMFONY_54,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
TwigSetList::TWIG_UNDERSCORE_TO_NAMESPACE
])
;