-
-
Notifications
You must be signed in to change notification settings - Fork 962
Expand file tree
/
Copy pathrector.php
More file actions
49 lines (45 loc) · 1.69 KB
/
rector.php
File metadata and controls
49 lines (45 loc) · 1.69 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
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector;
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
__DIR__.'/tests',
])
->withSkip([
__DIR__.'/src/Core/Bridge/Symfony/Maker/Resources/skeleton',
__DIR__.'/src/Laravel/Console/Maker/Resources/skeleton',
__DIR__.'/src/Laravel/config',
__DIR__.'/tests/Fixtures/app/var',
__DIR__.'/docs/guides',
__DIR__.'/docs/var',
__DIR__.'/src/Doctrine/Orm/Tests/var',
__DIR__.'/src/Doctrine/Odm/Tests/var',
__DIR__.'/tests/Fixtures/app/config/reference.php',
__DIR__.'/src/Symfony/Bundle/DependencyInjection/Configuration.php',
__DIR__.'/tests/Fixer/SymfonyServiceClassConstantFixer.php',
RemoveUnusedPromotedPropertyRector::class => [
__DIR__.'/tests/Fixtures/TestBundle/Filter/SearchTextAndDateFilter.php',
__DIR__.'/tests/Fixtures/TestBundle/Filter/ODMSearchTextAndDateFilter.php',
],
RemoveUnusedPublicMethodParameterRector::class => [
__DIR__.'/src/GraphQl/Action/GraphiQlAction.php',
],
])
// uncomment to reach your current PHP version
// ->withPhpSets()
->withPreparedSets(
typeDeclarations: true,
deadCode: true,
)
->withCodeQualityLevel(0);