rector/vendor/ondram/ci-detector/ecs.php
Tomas Votruba 03f122a600 Updated Rector to commit c390eabeb2b2f77f755bfadc1d51b000da0d5ade
c390eabeb2 Skip mixed in ParamTypeByMethodCallTypeRector as not specific (#5715)
2024-03-12 16:22:51 +00:00

25 lines
1.4 KiB
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix202403;
use RectorPrefix202403\PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer;
use RectorPrefix202403\PhpCsFixer\Fixer\Phpdoc\PhpdocLineSpanFixer;
use RectorPrefix202403\PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer;
use RectorPrefix202403\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use RectorPrefix202403\Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
use RectorPrefix202403\Symplify\EasyCodingStandard\ValueObject\Option;
return static function (ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::SKIP, [__DIR__ . '/tests/PropertiesPrinterHelper.php']);
$containerConfigurator->import(__DIR__ . '/vendor/lmc/coding-standard/ecs.php');
$services = $containerConfigurator->services();
// Use single-line phpdoc where possible
$services->set(PhpdocLineSpanFixer::class)->call('configure', [['property' => 'single']]);
// Tests must have @test annotation
$services->set(PhpUnitTestAnnotationFixer::class)->call('configure', [['style' => 'annotation']]);
$services->set(OrderedClassElementsFixer::class);
// Force line length
$services->set(LineLengthFixer::class)->call('configure', [['line_length' => 120, 'break_long_lines' => \true, 'inline_short_lines' => \false]]);
};