-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector-ci.php
28 lines (26 loc) · 944 Bytes
/
rector-ci.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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
use Rector\Symfony\Set\SymfonySetList;
return RectorConfig::configure()
->withPhpSets(php83: true)
->withAttributesSets(symfony: true, phpunit: true)
->withSets([
PHPUnitSetList::PHPUNIT_110,
SymfonySetList::SYMFONY_64,
])
->withRules([
FinalizeTestCaseClassRector::class,
PreferPHPUnitSelfCallRector::class,
])
->withSkip([
__DIR__ . '/rector-ci.php',
__DIR__ . '/tests/App/config/bundles.php',
AddOverrideAttributeToOverriddenMethodsRector::class,
])
->withSkipPath(__DIR__ . '/tests/App/var/*')
->withImportNames();