-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector-ci.php
More file actions
24 lines (22 loc) · 878 Bytes
/
rector-ci.php
File metadata and controls
24 lines (22 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector;
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
return RectorConfig::configure()
->withPhpSets(php84: true)
->withAttributesSets(symfony: true, phpunit: true)
->withComposerBased(phpunit: true, symfony: true)
->withRules([
FinalizeTestCaseClassRector::class,
PreferPHPUnitSelfCallRector::class,
])
->withSkip([
__DIR__ . '/rector-ci.php',
__DIR__ . '/composer-dependency-analyser.php',
__DIR__ . '/tests/App/config/bundles.php',
AddOverrideAttributeToOverriddenMethodsRector::class,
])
->withSkipPath(__DIR__ . '/tests/App/var/*')
->withImportNames();