-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy pathrector.php
More file actions
40 lines (37 loc) · 1.28 KB
/
Copy pathrector.php
File metadata and controls
40 lines (37 loc) · 1.28 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
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Catch_\ThrowWithPreviousExceptionRector;
use Rector\Config\RectorConfig;
use Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector;
use Rector\Php85\Rector\Property\AddOverrideAttributeToOverriddenPropertiesRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
return RectorConfig::configure()
->withImportNames()
->withPaths([
'rector.php',
__DIR__ . '/example.php',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSkipPath(__DIR__ . '/vendor')
->withSkipPath(__DIR__ . '/tests/resources')
->withSkipPath(__DIR__ . '/tests/e2e/sdks/*')
->withSkipPath(__DIR__ . '/tests/generation/sdks/*')
->withPhpSets(php85: true)
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true
)
->withSets([
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
])
->withSkip([
ThrowWithPreviousExceptionRector::class,
AddOverrideAttributeToOverriddenPropertiesRector::class,
DisallowedEmptyRuleFixerRector::class,
NewMethodCallWithoutParenthesesRector::class => [
__DIR__ . '/tests/e2e/languages/php/test.php',
],
]);