-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
49 lines (46 loc) · 1.88 KB
/
rector.php
File metadata and controls
49 lines (46 loc) · 1.88 KB
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
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
use Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSkip([
//__DIR__ . '/tests',
NewlineAfterStatementRector::class,
NewMethodCallWithoutParenthesesRector::class,
RenamePropertyToMatchTypeRector::class,
Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector::class
])
->withPreparedSets(
//deadCode: true,
//codeQuality: true,
codingStyle: true,
naming: true,
privatization: true,
//typeDeclarations: true,
//rectorPreset: true
)
->withPhpSets(php85: true)
->withPhpVersion(PhpVersion::PHP_85)
->withAttributesSets(symfony: true, doctrine: true)
->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
->withSets(
[
LevelSetList::UP_TO_PHP_85
]
)
->withRules(
[
]
)
->withTypeCoverageLevel(50)
->withDeadCodeLevel(50)
->withCodeQualityLevel(50)
;