Files
FOSSBilling/rectorTests.php
T
Belle Aerni 075c809881 Updated our rector configs (#2224)
* Some rector config work

* Increased type coverage, added dead code
2024-04-09 00:51:42 -07:00

25 lines
1009 B
PHP

<?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;
return RectorConfig::configure()
->withPaths([__DIR__ . '/tests', __DIR__ . '/tests-legacy'])
->withSkipPath(__DIR__ . '/src/vendor')
->withSkipPath(__DIR__ . '/src/data/cache')
->withPhpSets()
->withSets([PHPUnitSetList::PHPUNIT_100])
->withTypeCoverageLevel(2)
->withDeadCodeLevel(5)
->withSkip([JsonThrowOnErrorRector::class, LongArrayToShortArrayRector::class, NullToStrictStringFuncCallArgRector::class])
->withRules([ExplicitNullableParamTypeRector::class])
->withCache('./cache/rector_tests', FileCacheStorage::class)
->withParallel(120, 8, 10);