Skip to content

Instantly share code, notes, and snippets.

@eriveltondasilva
Created May 29, 2025 15:02
Show Gist options
  • Save eriveltondasilva/8adfb31ff6ad2bc876ed322d65fd053d to your computer and use it in GitHub Desktop.
Save eriveltondasilva/8adfb31ff6ad2bc876ed322d65fd053d to your computer and use it in GitHub Desktop.
<?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