Skip to content

Commit

Permalink
Update rector.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr authored Apr 2, 2024
1 parent 5dfb353 commit 47f879d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

use PHPDevsr\Rector\Codeigniter4\Set\CodeigniterSetList;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
Expand All @@ -23,30 +24,23 @@
->withSets([
CodeigniterSetList::CODEIGNITER_44,
])

// auto import fully qualified class names
->withImportNames(removeUnusedImports: true)

// The paths to refactor (can also be supplied with CLI arguments)
->withPaths([
__DIR__ . '/app',
__DIR__ . '/tests',
])

->withParallel(120, 8, 10)
->withCache('/tmp/rector', FileCacheStorage::class)
// Include Composer's autoload - required for global execution, remove if running locally
->withAutoloadPaths([
__DIR__ . '/vendor/autoload.php',
])

// Do you need to include constants, class aliases, or a custom autoloader?
->withBootstrapFiles([
realpath(getcwd()) . '/vendor/codeigniter4/framework/system/Test/bootstrap.php',
])

if (is_file(__DIR__ . '/phpstan.neon.dist')) {
->withPHPStanConfigs(__DIR__ . '/phpstan.neon.dist')
}

// Are there files or rules you need to skip?
->withSkip([
__DIR__ . '/app/Views',
Expand Down

0 comments on commit 47f879d

Please sign in to comment.