forked from nuwave/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
29 lines (23 loc) · 976 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
<?php
use Rector\Core\Configuration\Option;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedParameterRector;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::SETS, [
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::PHPUNIT_EXCEPTION,
SetList::PHPUNIT_SPECIFIC_METHOD,
SetList::PHPUNIT_YIELD_DATA_PROVIDER,
]);
$parameters->set(Option::SKIP, [
// Does not fit autoloading standards
__DIR__.'/tests/database/migrations',
// Gets stuck on WhereConditionsBaseDirective for some reason
__DIR__.'/src/WhereConditions',
// Having unused parameters can increase clarity, e.g. in event handlers
RemoveUnusedParameterRector::class,
]);
};