-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
33 lines (31 loc) · 864 Bytes
/
rector.php
File metadata and controls
33 lines (31 loc) · 864 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
26
27
28
29
30
31
32
33
<?php
use BitAndBlack\Hyphenizer\Sdk\Util\Path;
use Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
return RectorConfig::configure()
->withParallel()
->withPaths([
__DIR__,
])
->withSkip([
(new Path())->getLibraryFolder(),
__DIR__ . DIRECTORY_SEPARATOR . 'vendor',
PreferPHPUnitThisCallRector::class,
SimplifyBoolIdenticalTrueRector::class,
])
->withPhpSets()
->withImportNames()
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
typeDeclarationDocblocks: true,
privatization: true,
naming: true,
)
->withComposerBased(
phpunit: true,
)
;