From 708fb8fb119a0a93ac1f14c0456a7bf4bd2909bc Mon Sep 17 00:00:00 2001 From: "James (DPC)" <69664712+JamesDPC@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:52:40 +1000 Subject: [PATCH] (rector) add more rules to skip in base rector config --- rector/.rector.vanilla.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rector/.rector.vanilla.php b/rector/.rector.vanilla.php index 89af40f..5873857 100644 --- a/rector/.rector.vanilla.php +++ b/rector/.rector.vanilla.php @@ -34,7 +34,16 @@ \Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector::class, // Avoid applying this rule, encapsed strings are more readable - \Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector::class + \Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector::class, + + // Avoid applying this rule, too verbose + \Rector\TypeDeclaration\Rector\BooleanAnd\BinaryOpNullableToInstanceofRector::class, + + // Avoid applying this rule, too verbose + \Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector::class, + + // Avoid applying this rule, not handling ?SomeClass return types appropriately + \Rector\Strict\Rector\Ternary\BooleanInTernaryOperatorRuleFixerRector::class ])