-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrector.php
30 lines (24 loc) · 988 Bytes
/
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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Set\ValueObject\SetList;
use Rector\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->parallel();
$rectorConfig->paths([__DIR__.'/src', __DIR__.'/tests']);
$rectorConfig->phpVersion(PhpVersion::PHP_80);
$rectorConfig->phpstanConfig(__DIR__.'/phpstan.neon.dist');
$rectorConfig->import(SetList::CODE_QUALITY);
$rectorConfig->import(SetList::DEAD_CODE);
$rectorConfig->import(SetList::PHP_74);
$rectorConfig->import(SetList::PHP_80);
$rectorConfig->import(SetList::TYPE_DECLARATION);
$rectorConfig->skip([
PropertyTypeDeclarationRector::class => [
__DIR__.'/src/Command/',
__DIR__.'/tests/Command/AbstractBaseCommandTest.php',
__DIR__.'/tests/Command/DefaultCommandTest.php',
],
]);
};