-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathrector.src.php
More file actions
38 lines (36 loc) · 1.62 KB
/
rector.src.php
File metadata and controls
38 lines (36 loc) · 1.62 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
33
34
35
36
37
38
<?php
use Rector\Php81\Rector\Array_\ArrayToFirstClassCallableRector;
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\CodingStyle\Rector\FuncCall\FunctionFirstClassCallableRector;
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
use Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector;
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',
__DIR__ . '/web/landing/src',
])
->withSkip([
RemoveExtraParametersRector::class,
FunctionFirstClassCallableRector::class,
ArrowFunctionDelegatingCallToFirstClassCallableRector::class,
StringClassNameToClassConstantRector::class,
__DIR__ . '/src/lib/parquet/src/Flow/Parquet/ThriftModel/*',
// Symfony DI requires array format for setFactory(), first-class callable syntax is not supported
ArrayToFirstClassCallableRector::class => [
__DIR__ . '/src/bridge/symfony/telemetry-bundle/src/Flow/Bridge/Symfony/TelemetryBundle/DependencyInjection/FlowTelemetryExtension.php',
],
])
->withCache(__DIR__ . '/var/rector/src')
->withImportNames(importShortClasses: false, removeUnusedImports: true)
->withSets([
LevelSetList::UP_TO_PHP_83,
]);