Skip to content

Commit

Permalink
[CodeQuality] Remove MoveVariableDeclarationNearReferenceRector for t…
Browse files Browse the repository at this point in the history
…oo wide domain, not capable on most of real projects (#587)
  • Loading branch information
TomasVotruba authored Aug 3, 2021
1 parent aff0c5d commit 0a51a73
Show file tree
Hide file tree
Showing 38 changed files with 1 addition and 1,150 deletions.
2 changes: 0 additions & 2 deletions config/set/code-quality-strict.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
declare(strict_types=1);

use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
use Rector\CodeQuality\Rector\Variable\MoveVariableDeclarationNearReferenceRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\CodingStyle\Rector\MethodCall\UseMessageVariableForSprintfInSymfonyStyleRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(CountArrayToEmptyArrayComparisonRector::class);
$services->set(MoveVariableDeclarationNearReferenceRector::class);
$services->set(UseMessageVariableForSprintfInSymfonyStyleRector::class);
$services->set(FlipTypeControlToUseExclusiveTypeRector::class);
};
1 change: 1 addition & 0 deletions packages/Set/ValueObject/SetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ final class SetList implements SetListInterface
public const CODE_QUALITY = __DIR__ . '/../../../config/set/code-quality.php';

/**
* @deprecated Use only/directly CODE_QUALITY instead
* @var string
*/
public const CODE_QUALITY_STRICT = __DIR__ . '/../../../config/set/code-quality-strict.php';
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0a51a73

Please sign in to comment.