forked from FOSSBilling/FOSSBilling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rectorTests.php
30 lines (27 loc) · 1 KB
/
rectorTests.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
<?php
declare(strict_types=1);
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\Set\ValueObject\SetList;
return RectorConfig::configure()
->withPaths([__DIR__ . '/tests', __DIR__ . '/tests-legacy'])
->withPhpSets()
->withTypeCoverageLevel(2)
->withDeadCodeLevel(25)
->withSets([
PHPUnitSetList::PHPUNIT_100,
SetList::INSTANCEOF,
])
->withSkip([
JsonThrowOnErrorRector::class,
LongArrayToShortArrayRector::class,
NullToStrictStringFuncCallArgRector::class
])
->withRules([ExplicitNullableParamTypeRector::class])
->withCache('./cache/rector_tests', FileCacheStorage::class)
->withParallel(120, 8, 10);