Created
May 29, 2025 15:02
-
-
Save eriveltondasilva/8adfb31ff6ad2bc876ed322d65fd053d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use Rector\Config\RectorConfig; | |
use RectorLaravel\Set\LaravelLevelSetList; | |
return RectorConfig::configure() | |
->withPaths([ | |
__DIR__ . '/app', | |
__DIR__ . '/bootstrap', | |
__DIR__ . '/config', | |
__DIR__ . '/public', | |
__DIR__ . '/resources', | |
__DIR__ . '/routes', | |
__DIR__ . '/tests', | |
]) | |
->withPhpSets(php82: true) | |
->withImportNames() | |
->withPreparedSets( | |
deadCode: true, | |
codeQuality: true, | |
codingStyle: true, | |
earlyReturn: true, | |
privatization: true, | |
typeDeclarations: true, | |
strictBooleans: true, | |
rectorPreset: true, | |
) | |
->withSets([ | |
LaravelLevelSetList::UP_TO_LARAVEL_120, | |
]) | |
->withSkip([ | |
__DIR__ . '/storage', | |
__DIR__ . '/public', | |
__DIR__ . '/resources/views', | |
__DIR__ . '/vendor', | |
__DIR__ . '/bootstrap/cache', | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment