ldc-gen-game-web/rector.php
2026-10-20 12:27:49 +02:00

35 lines
874 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassConst\RemoveUnusedPrivateClassConstantRector;
use Rector\Set\ValueObject\SetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/app',
__DIR__ . '/bootstrap/app.php',
__DIR__ . '/config',
__DIR__ . '/database',
__DIR__ . '/resources/lang',
__DIR__ . '/routes',
__DIR__ . '/tests',
])
->withPhpSets()
->withSets([
SetList::PHP_POLYFILLS,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::PRIVATIZATION,
SetList::TYPE_DECLARATION,
SetList::EARLY_RETURN,
SetList::INSTANCEOF,
SetList::IF,
])
->withSkip([
RemoveUnusedPrivateClassConstantRector::class => [
__DIR__ . '/app/Enums',
],
]);
;