forked from zircote/swagger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
46 lines (44 loc) · 2.01 KB
/
Copy pathrector.php
File metadata and controls
46 lines (44 loc) · 2.01 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
<?php
use Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector;
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
use Rector\CodingStyle\Rector\If_\NullableCompareToNullRector;
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php81\Rector\Array_\ArrayToFirstClassCallableRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withSkipPath(__DIR__ . '/tests/Fixtures')
->withSkip([
NewlineBeforeNewAssignSetRector::class,
ForRepeatedCountToOwnVariableRector::class,
ReadOnlyPropertyRector::class,
NewlineAfterStatementRector::class,
StringClassNameToClassConstantRector::class => [
__DIR__ . '/src/Analysers/DocBlockParser.php',
__DIR__ . '/tests/Analysers/ComposerAutoloaderScannerTest.php',
__DIR__ . '/tests/AnalysisTest.php',
__DIR__ . '/tests/ContextTest.php',
// provider keys are names the scanner reads out of a file, not classes this
// test loads — `::class` would imply a link that is not there
__DIR__ . '/tests/Utils/TokenScannerTest.php',
],
ClassPropertyAssignToConstructorPromotionRector::class,
ArrayToFirstClassCallableRector::class => [
__DIR__ . '/tests/Analysers/ComposerAutoloaderScannerTest.php',
],
])
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
phpunitCodeQuality: true,
)
->withAttributesSets(phpunit: true)
->withPhpVersion(PhpVersion::PHP_82)
->withPhpSets();