-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
50 lines (47 loc) · 1.5 KB
/
rector.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* This file is part of the HighchartsBundle package.
*
* (c) bibi.nu <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\TwigSetList;
return RectorConfig::configure()
->withRootFiles()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/rector.php',
])->withSkip([
PreferPHPUnitThisCallRector::class,
DisallowedEmptyRuleFixerRector::class,
])->withSets([
// global
SetList::PHP_82,
SetList::CODE_QUALITY,
SetList::PRIVATIZATION,
SetList::INSTANCEOF,
SetList::STRICT_BOOLEANS,
SetList::TYPE_DECLARATION,
// PHP-Unit
PHPUnitSetList::PHPUNIT_100,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
// Symfony
SymfonySetList::SYMFONY_71,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
// twig
TwigSetList::TWIG_240,
TwigSetList::TWIG_UNDERSCORE_TO_NAMESPACE,
]);