merge dead-doc-block to dead-code set

This commit is contained in:
TomasVotruba 2021-03-15 21:03:11 +01:00
parent 5896991385
commit bcfc808852
3 changed files with 8 additions and 21 deletions

View File

@ -48,6 +48,9 @@ use Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector;
use Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector;
use Rector\DeadCode\Rector\Ternary\TernaryToBooleanOrFalseToBooleanAndRector;
use Rector\DeadCode\Rector\TryCatch\RemoveDeadTryCatchRector;
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessParamTagRector;
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessReturnTagRector;
use Rector\DeadDocBlock\Rector\Node\RemoveNonExistingVarAnnotationRector;
use Rector\PHPUnit\Rector\ClassMethod\RemoveEmptyTestMethodRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
@ -100,4 +103,9 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$services->set(RemoveDeadInstanceOfRector::class);
$services->set(RemoveEmptyAbstractClassRector::class);
$services->set(RemoveDeadLoopRector::class);
// docblock
$services->set(RemoveUselessParamTagRector::class);
$services->set(RemoveUselessReturnTagRector::class);
$services->set(RemoveNonExistingVarAnnotationRector::class);
};

View File

@ -1,16 +0,0 @@
<?php
declare(strict_types=1);
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessParamTagRector;
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessReturnTagRector;
use Rector\DeadDocBlock\Rector\Node\RemoveNonExistingVarAnnotationRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(RemoveUselessParamTagRector::class);
$services->set(RemoveUselessReturnTagRector::class);
$services->set(RemoveNonExistingVarAnnotationRector::class);
};

View File

@ -103,11 +103,6 @@ final class SetList implements SetListInterface
*/
public const DEAD_CODE_STRICT = __DIR__ . '/../../../config/set/dead-code-strict.php';
/**
* @var string
*/
public const DEAD_DOC_BLOCK = __DIR__ . '/../../../config/set/dead-doc-block.php';
/**
* @var string
*/