-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrector.php
More file actions
25 lines (22 loc) · 770 Bytes
/
rector.php
File metadata and controls
25 lines (22 loc) · 770 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\Php55\Rector\String_\StringClassNameToClassConstantRector;
return RectorConfig::configure()
->withImportNames()
->withPaths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/rules', __DIR__ . '/rules-tests'])
->withSkip([
StringClassNameToClassConstantRector::class => [
__DIR__ . '/src/DocFactory.php',
__DIR__ . '/src/NodeFactory/LetMockNodeFactory.php',
__DIR__ . '/rules/Rector/Class_/PhpSpecClassToPHPUnitClassRector.php',
],
])
->withPreparedSets(
instanceOf: true,
naming: true,
typeDeclarations: true,
deadCode: true,
codeQuality: true,
codingStyle: true,
);