Files
FOSSBilling/rector.php
Belle Aerni 0a156f4161 Fix CS automation (#3209)
* Restore needed gitignore

* Ran the fixes since they are far behind

* Fix for rector causing a problem. Re-ran.

* Update ServiceTest.php
2026-01-26 11:18:35 -08:00

34 lines
975 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\TypeDeclaration\Rector\Class_\TypedPropertyFromCreateMockAssignRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/tests-legacy'
])
->withSkip([
__DIR__ . '/src/vendor',
__DIR__ . '/src/data/cache',
TypedPropertyFromCreateMockAssignRector::class => [
__DIR__ . "/tests-legacy/modules/Extension/ServiceTest.php"
],
])
->withAttributesSets()
->withPhpSets()
->withSets([
DoctrineSetList::DOCTRINE_CODE_QUALITY,
PHPUnitSetList::PHPUNIT_110,
])
->withTypeCoverageLevel(30)
->withDeadCodeLevel(30)
->withCache('./cache/rector', FileCacheStorage::class)
->withParallel(120, 8, 10);