Skip to content

Commit

Permalink
refactor(coding-style): remove unused Rectors
Browse files Browse the repository at this point in the history
- Remove AddArrayDefaultToArrayPropertyRector
- Remove UnSpreadOperatorRector
  • Loading branch information
guanguans committed Jan 8, 2024
1 parent fa6f1ba commit 0dfd64b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector;
use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
use Rector\CodingStyle\Rector\Class_\AddArrayDefaultToArrayPropertyRector;
use Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector;
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
Expand All @@ -45,6 +43,11 @@
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;

return static function (RectorConfig $rectorConfig): void {
define('MHASH_XXH3', 1);
define('MHASH_XXH32', 1);
define('MHASH_XXH64', 1);
define('MHASH_XXH128', 1);

$rectorConfig->importNames(false, false);
$rectorConfig->importShortClasses(false);
// $rectorConfig->disableParallel();
Expand Down Expand Up @@ -82,7 +85,6 @@

$rectorConfig->skip([
// rules
// AddArrayDefaultToArrayPropertyRector::class,
// CallableThisArrayToAnonymousFunctionRector::class,
// ChangeAndIfToEarlyReturnRector::class,
// ExplicitBoolCompareRector::class,
Expand All @@ -91,7 +93,6 @@
// ReturnBinaryOrToEarlyReturnRector::class,
// SimplifyBoolIdenticalTrueRector::class,
// StaticClosureRector::class,
// UnSpreadOperatorRector::class,

EncapsedStringsToSprintfRector::class,
// InlineIfToExplicitIfRector::class,
Expand Down Expand Up @@ -125,9 +126,6 @@
// ReturnEarlyIfVariableRector::class => [
// __DIR__.'/src/Support/EscapeArg.php',
// ],
// UnSpreadOperatorRector::class => [
// __DIR__.'/src/Concerns/WithDumpable.php',
// ],

// paths
__DIR__.'/tests/AspectMock',
Expand Down

0 comments on commit 0dfd64b

Please sign in to comment.