-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
41 lines (38 loc) · 1.13 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
<?php
/**
* This file is part of PCCD.
*
* (c) Pere Orga Esteve <[email protected]>
* (c) Víctor Pàmies i Riudor <[email protected]>
*
* This source file is subject to the AGPL license that is bundled with this
* source code in the file LICENSE.
*/
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchExprVariableRector;
return RectorConfig::configure()
->withPaths([
__FILE__,
__DIR__ . '/docroot',
__DIR__ . '/scripts',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withRootFiles()
->withSkip([
__DIR__ . '/src/third_party/*',
EncapsedStringsToSprintfRector::class,
NewlineAfterStatementRector::class,
RenameForeachValueVariableToMatchExprVariableRector::class,
])
->withPreparedSets(
codeQuality: true,
codingStyle: true,
deadCode: true,
earlyReturn: true,
naming: true,
typeDeclarations: true
)
->withPhpSets();