diff --git a/rector.php b/rector.php deleted file mode 100644 index a54526a6b..000000000 --- a/rector.php +++ /dev/null @@ -1,71 +0,0 @@ -withPaths([ - __DIR__ . '/app', - __DIR__ . '/bootstrap', - __DIR__ . '/config', - __DIR__ . '/public', - __DIR__ . '/resources', - __DIR__ . '/routes', - __DIR__ . '/tests', - ]) - ->withRules([ - // UNUSED PRIVATE METHODS & PROPERTIES - RemoveUnusedPrivateMethodRector::class, // Remove unused private methods - // RemoveUnusedPrivatePropertyRector::class, // Remove unused private properties - /// RemoveUnusedPromotedPropertyRector::class, // Remove unused promoted properties (PHP 8.0+) - - // UNUSED VARIABLES & ASSIGNMENTS - // RemoveUnusedVariableAssignRector::class, // Remove unused variable assignments - // RemoveJustPropertyFetchForAssignRector::class, // Remove property fetch that's only assigned but never used - /// RemoveUnusedForeachKeyRector::class, // Remove unused foreach keys - - // UNREACHABLE & DEAD CODE - // RemoveUnreachableStatementRector::class, // Remove unreachable statements after return/throw - /// RemoveDeadStmtRector::class, // Remove dead statements - /// RemoveDeadInstanceOfRector::class, // Remove dead instanceof checks - /// RemoveDeadConditionAboveReturnRector::class, // Remove dead conditions above return - /// RemoveDeadLoopRector::class, // Remove loops that never execute - /// RemoveDeadTryCatchRector::class, // Remove try-catch that never catches - - // USELESS ANNOTATIONS - // RemoveUselessParamTagRector::class, // Remove useless @param tags - /// RemoveUselessReturnTagRector::class, // Remove useless @return tags - /// RemoveNonExistingVarAnnotationRector::class, // Remove @var for non-existing variables - - // SIMPLIFY CONDITIONS - /// RemoveAlwaysTrueIfConditionRector::class, // Remove always-true if conditions - /// SimplifyIfElseWithSameContentRector::class, // Simplify if-else with same content - /// RemoveDuplicatedCaseInSwitchRector::class, // Remove duplicated switch cases - - - - // UNNECESSARY OPERATIONS - /// RemoveConcatAutocastRector::class, // Remove unnecessary string concatenation autocasts - /// RecastingRemovalRector::class, // Remove unnecessary type recasting - ]);