-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
rector.php
35 lines (32 loc) · 950 Bytes
/
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
<?php
/**
* This file is part of samsonasik/ci4-album.
*
* (c) 2020 Abdul Malik Ikhsan <[email protected]>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPreparedSets(
codeQuality: true,
deadCode: true,
typeDeclarations: true,
privatization: true,
naming: true,
codingStyle: true
)
->withPhpSets(php81: true)
->withPaths([__DIR__ . '/src', __DIR__ . '/test'])
->withRootFiles()
->withImportNames(removeUnusedImports: true)
->withSkip([
// conflict with cs fix
NewlineAfterStatementRector::class,
])
->withBootstrapFiles(
[__DIR__ . '/bootstrap.php']
)
->withPHPStanConfigs([__DIR__ . '/phpstan.neon']);