Skip to content
Extraits de code Groupes Projets
ecs.php 695 o
<?php

use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer;
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
use SpipLeague\EasyCodingStandard\Set\SetList;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
    ->withSets([SetList::SPIP])
    ->withConfiguredRule(GeneralPhpdocAnnotationRemoveFixer::class, [
        'annotations' => ['group', 'covers', 'category'],
    ])
    ->withConfiguredRule(OrderedClassElementsFixer::class, [
        'case_sensitive' => true,
        'sort_algorithm' => 'alpha',
    ])
    ->withPaths([__DIR__])
    ->withRootFiles()
    ->withSkip([__DIR__ . '/lang', __DIR__ . '/vendor', __DIR__ . '/tests'])
;