saufen/ecs.php
2025-05-31 21:43:13 +02:00

33 lines
687 B
PHP

<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/public',
__DIR__ . '/src',
__DIR__ . '/config',
__DIR__ . '/tests',
__DIR__ . '/bin',
])
// add a single rule
->withRules([
NoUnusedImportsFixer::class,
])
->withPhpCsFixerSets(
per: true,
php84Migration: true,
)
// add sets - group of rules, from easiest to more complex ones
// uncomment one, apply one, commit, PR, merge and repeat
->withPreparedSets(
strict: true,
)
;