forked from DomainDrivers/dd-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector.php
38 lines (36 loc) · 1.21 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
<?php
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
__DIR__.'/tests',
])
->withParallel(240)
->withPhpVersion(PhpVersion::PHP_83)
->withRules([
TypedPropertyFromStrictConstructorRector::class
])
->withImportNames(true, true, false)
->withPHPStanConfigs([__DIR__.'/phpstan.neon'])
->withPhpSets(php83: true)
->withSets([
PHPUnitSetList::PHPUNIT_100,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
])
->withSkip([
PreferPHPUnitThisCallRector::class,
ClosureToArrowFunctionRector::class,
ClassPropertyAssignToConstructorPromotionRector::class => [
__DIR__.'/src/SmartSchedule/Planning/Project.php'
]
])
->withPreparedSets(
deadCode: true,
codeQuality: true
);