-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
ecs.php
21 lines (16 loc) · 941 Bytes
/
ecs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symplify\EasyCodingStandard\Config\ECSConfig $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Symplify\EasyCodingStandard\ValueObject\Option::PATHS, [
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$containerConfigurator->import(Symplify\EasyCodingStandard\ValueObject\Set\SetList::PSR_12);
$containerConfigurator->import(Symplify\EasyCodingStandard\ValueObject\Set\SetList::COMMON);
$containerConfigurator->import(Symplify\EasyCodingStandard\ValueObject\Set\SetList::CLEAN_CODE);
$containerConfigurator->import(Symplify\EasyCodingStandard\ValueObject\Set\SetList::SYMFONY);
$services = $containerConfigurator->services();
$services->remove(PhpCsFixer\Fixer\Operator\ConcatSpaceFixer::class);
};