-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
33 lines (26 loc) · 948 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
31
32
33
<?php
declare(strict_types=1);
use Ctw\Qa\Rector\Config\RectorConfig\DefaultFileExtensions;
use Ctw\Qa\Rector\Config\RectorConfig\DefaultSets;
use Ctw\Qa\Rector\Config\RectorConfig\DefaultSkip;
use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig): void {
$fileExtensions = new DefaultFileExtensions();
$sets = new DefaultSets();
$skip = new DefaultSkip();
$rectorConfig->fileExtensions($fileExtensions());
$rectorConfig->sets($sets());
$rectorConfig->paths(
[
sprintf('%s/bin', __DIR__),
sprintf('%s/data', __DIR__),
sprintf('%s/demo', __DIR__),
sprintf('%s/src', __DIR__),
sprintf('%s/test', __DIR__),
sprintf('%s/bootstrap.php', __DIR__),
sprintf('%s/ecs.php', __DIR__),
sprintf('%s/rector.php', __DIR__),
]
);
$rectorConfig->skip($skip());
};