forked from flow-php/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.src.php
More file actions
32 lines (30 loc) · 1.18 KB
/
rector.src.php
File metadata and controls
32 lines (30 loc) · 1.18 KB
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
26
27
28
29
30
31
32
<?php
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector;
use Rector\CodingStyle\Rector\FuncCall\FunctionFirstClassCallableRector;
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/bin',
__DIR__ . '/examples/topics/*/*/*.php',
__DIR__ . '/src/core/etl/src',
__DIR__ . '/src/cli/src',
__DIR__ . '/src/lib/*/src',
__DIR__ . '/src/adapter/**/src',
__DIR__ . '/src/bridge/**/src',
__DIR__ . '/src/tools/**/src',
])
->withSkip([
RemoveExtraParametersRector::class,
FunctionFirstClassCallableRector::class,
FunctionLikeToFirstClassCallableRector::class,
StringClassNameToClassConstantRector::class,
__DIR__ . '/src/lib/parquet/src/Flow/Parquet/ThriftModel/*',
])
->withCache(__DIR__ . '/var/rector/src')
->withImportNames(importShortClasses: false, removeUnusedImports: true)
->withSets([
LevelSetList::UP_TO_PHP_82,
]);