-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
rector.php
52 lines (46 loc) · 1.86 KB
/
rector.php
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
declare(strict_types=1);
/*
* This file is part of the humbug/php-scoper package.
*
* Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>,
* Pádraic Brady <padraic.brady@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__.'/bin/php-scoper',
__DIR__.'/src',
__DIR__.'/tests',
__DIR__.'/composer-root-version-checker',
])
->withAutoloadPaths([
__DIR__.'/vendor/autoload.php',
__DIR__.'/vendor-bin/rector/vendor/autoload.php',
])
->withImportNames(removeUnusedImports: true)
->withPhpSets(php82: true)
->withAttributesSets(phpunit: true)
->withSkip([
__DIR__.'/composer-root-version-checker/vendor',
__DIR__.'/src/PhpParser/TraverserFactory.php',
__DIR__.'/tests/PhpParser/UseStmtNameTest.php',
__DIR__.'/src/PhpParser/NodeVisitor/AttributeAppender/ParentNodeAppender.php',
Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector::class,
Rector\Php73\Rector\String_\SensitiveHereNowDocRector::class,
Rector\Php81\Rector\ClassMethod\NewInInitializerRector::class => [
__DIR__.'/src/Configuration/Configuration.php',
],
Rector\Php81\Rector\Property\ReadOnlyPropertyRector::class => [
__DIR__.'/src/Configuration/Configuration.php',
],
Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class => [
__DIR__.'/tests/Symbol/NamespaceRegistryTest.php',
__DIR__.'/tests/Symbol/Reflector/UserSymbolsReflectorTest.php',
__DIR__.'/tests/Symbol/SymbolRegistryTest.php',
__DIR__.'/tests/Symbol/SymbolsRegistryTest.php',
],
]);