forked from KnpLabs/DoctrineBehaviors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector-ci.php
30 lines (23 loc) · 1.08 KB
/
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
29
30
<?php
declare(strict_types=1);
use Rector\Core\Configuration\Option;
use Rector\DeadCode\Rector\Class_\RemoveUnusedDoctrineEntityMethodAndPropertyRector;
use Rector\Set\ValueObject\SetList;
use Rector\SOLID\Rector\ClassMethod\UseInterfaceOverImplementationInConstructorRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/utils']);
$parameters->set(Option::SETS, [
SetList::DEAD_CODE,
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::NETTE_UTILS_CODE_QUALITY,
SetList::NAMING,
]);
$parameters->set(Option::EXCLUDE_RECTORS, [
RemoveUnusedDoctrineEntityMethodAndPropertyRector::class,
UseInterfaceOverImplementationInConstructorRector::class,
]);
$parameters->set(Option::EXCLUDE_PATHS, [__DIR__ . '/src/Model/Translatable/TranslatableMethodsTrait.php']);
};