forked from manasbala/doctrine-log-bundle
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
57 lines (54 loc) · 1.68 KB
/
rector.php
File metadata and controls
57 lines (54 loc) · 1.68 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
50
51
52
53
54
55
56
57
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withIndent(indentChar: ' ', indentSize: 4)
->withPaths([
'Attribute',
'DependencyInjection',
'Entity',
'EventSubscriber',
'Service',
'Tests',
'MbDoctrineLogBundle.php',
])
->withSkip([
// this causes Problems
InlineConstructorDefaultToPropertyRector::class => [
__DIR__ . '/src/Backoffice/Services/NbkJsonResponse.php',
__DIR__ . '/src/Common/Entity/User.php'
],
AddParamTypeDeclarationRector::class => [
__DIR__ . '/src/VirtualKernel.php',
],
// see https://github.com/rectorphp/rector/issues/8009
DisallowedEmptyRuleFixerRector::class,
// results in duplicate getDefaultOptions-Declarations
ReturnNeverTypeRector::class,
])
->withPhpSets(
php81: true
)
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
naming: true,
instanceOf: true,
earlyReturn: true,
strictBooleans: true
)
->withParallel(600)
->withPhpVersion(PhpVersion::PHP_84)
->withImportNames(true)
->withComposerBased(
doctrine: true,
phpunit: true
);