30 lines
976 B
PHP
30 lines
976 B
PHP
<?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,
|
|
]);
|
|
};
|