-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrector.php
47 lines (44 loc) · 1.6 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
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/EMS/admin-ui-bundle/src',
__DIR__ . '/EMS/client-helper-bundle/src',
__DIR__ . '/EMS/client-helper-bundle/tests',
__DIR__ . '/EMS/common-bundle/src',
__DIR__ . '/EMS/common-bundle/tests',
__DIR__ . '/EMS/core-bundle/migrations',
__DIR__ . '/EMS/core-bundle/src',
__DIR__ . '/EMS/core-bundle/tests',
__DIR__ . '/EMS/form-bundle/src',
__DIR__ . '/EMS/form-bundle/tests',
__DIR__ . '/EMS/helpers/src',
__DIR__ . '/EMS/helpers/tests',
__DIR__ . '/EMS/submission-bundle/src',
__DIR__ . '/EMS/submission-bundle/tests',
__DIR__ . '/EMS/xliff/src',
__DIR__ . '/EMS/xliff/tests',
__DIR__ . '/elasticms-admin/src',
__DIR__ . '/elasticms-admin/tests',
__DIR__ . '/elasticms-cli/src',
__DIR__ . '/elasticms-cli/migrations',
__DIR__ . '/elasticms-cli/tests',
__DIR__ . '/elasticms-web/src',
__DIR__ . '/elasticms-web/migrations',
__DIR__ . '/elasticms-web/tests',
])
->withRules([
InlineConstructorDefaultToPropertyRector::class,
])
->withImportNames()
->withImportNames(importShortClasses: false)
->withPhpSets()
->withSets([
SymfonySetList::SYMFONY_64,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
])
;