-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrector.php
42 lines (38 loc) · 1.11 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
<?php
/*
* This file is part of the 'fpdf' package.
*
* For the license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author bibi.nu <[email protected]>
*/
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;
return RectorConfig::configure()
->withCache(__DIR__ . '/cache/rector')
->withRootFiles()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/rector.php',
])->withSkip([
PreferPHPUnitThisCallRector::class,
__DIR__ . '/src/font',
__DIR__ . '/tests/FPDF.php',
__DIR__ . '/tests/font',
])->withSets([
// global
SetList::PHP_82,
SetList::CODE_QUALITY,
SetList::PRIVATIZATION,
SetList::INSTANCEOF,
SetList::STRICT_BOOLEANS,
// PHP-Unit
PHPUnitSetList::PHPUNIT_110,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
]);