From e5c54f94f42975de1712b1d8168353973660e6e2 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Wed, 10 Dec 2025 22:26:10 +0100 Subject: [PATCH] chore(tooling): ignore NewlineBetweenClassLikeStmtsRector rector rule - this rule adds newlines between enum cases which is incorrect and pint already formats all other cases covered by this rule via its class_attributes_separation rule --- rector.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rector.php b/rector.php index d345710b2..490c74465 100644 --- a/rector.php +++ b/rector.php @@ -3,6 +3,7 @@ declare(strict_types=1); use Rector\Caching\ValueObject\Storage\FileCacheStorage; +use Rector\CodingStyle\Rector\ClassLike\NewlineBetweenClassLikeStmtsRector; use Rector\Config\RectorConfig; use Rector\Php80\Rector\NotIdentical\MbStrContainsRector; use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector; @@ -31,6 +32,7 @@ return RectorConfig::configure() ->withSkip([ __DIR__.'/bootstrap/cache', AddOverrideAttributeToOverriddenMethodsRector::class, + NewlineBetweenClassLikeStmtsRector::class, ]) ->withCache(__DIR__.'/storage/rector', FileCacheStorage::class) ->withPhpSets()