-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrector.php
More file actions
25 lines (22 loc) · 957 Bytes
/
rector.php
File metadata and controls
25 lines (22 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ConstFetch\RemovePhpVersionIdCheckRector;
return RectorConfig::configure()
->withPhpSets(php82: true)
->withPreparedSets(deadCode: true, typeDeclarations: true, earlyReturn: true)
// removeUnusedImports is false since we had cases where imports only used in Docblocks were removed;
// additionally, our code style fixer will remove unused imports as well
->withImportNames(true, true, false, false)
->withSkip([
__DIR__ . '/packages/extension-installer/generated',
__DIR__ . '/packages/fractor-rule-generator/templates',
RemovePhpVersionIdCheckRector::class => [__DIR__ . '/packages/fractor/src/Helper/FileHasher.php'],
])
->withPaths([
__DIR__ . '/ecs.php',
__DIR__ . '/packages',
__DIR__ . '/rector.php',
__DIR__ . '/src',
__DIR__ . '/monorepo-builder.php',
]);