forge/rector.php
2025-01-30 00:23:55 -05:00

38 lines
876 B
PHP

<?php
declare(strict_types=1);
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
__DIR__.'/bootstrap',
__DIR__.'/config',
__DIR__.'/lang',
__DIR__.'/public',
__DIR__.'/resources',
__DIR__.'/routes',
__DIR__.'/tests',
])
->withSkip([
__DIR__.'*.blade.php',
])
->withCache(
cacheDirectory: '.rector/cache',
cacheClass: FileCacheStorage::class
)
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
naming: true,
rectorPreset: true,
)
->withPhpSets()
->withImportNames(removeUnusedImports: true)
->withAttributesSets();