mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
38 lines
876 B
PHP
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();
|