forked from FOSSBilling/FOSSBilling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
32 lines (29 loc) · 1.07 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
<?php
declare(strict_types=1);
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\Set\ValueObject\SetList;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
return RectorConfig::configure()
->withPaths([__DIR__ . '/src'])
->withSkipPath(__DIR__ . '/src/vendor')
->withSkipPath(__DIR__ . '/src/data/cache')
->withPhpSets()
->withTypeCoverageLevel(5)
->withDeadCodeLevel(25)
->withSets([
SetList::INSTANCEOF,
])
->withSkip([
JsonThrowOnErrorRector::class,
LongArrayToShortArrayRector::class,
NullToStrictStringFuncCallArgRector::class,
MixedTypeRector::class,
])
->withRules([ExplicitNullableParamTypeRector::class])
->withCache('./cache/rector', FileCacheStorage::class)
->withParallel(120, 8, 10);