-
Notifications
You must be signed in to change notification settings - Fork 3
/
ecs.php
29 lines (22 loc) · 844 Bytes
/
ecs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ECSConfig $configurator): void {
// make ECS 16x faster
$configurator->parallel();
$configurator->paths([
__DIR__ . '/config/',
__DIR__ . '/src/',
__DIR__ . '/test/',
]);
// import SetList here in the end of ecs. is on purpose
// to avoid overridden by existing Skip Option in current config
$configurator->import(SetList::PSR_12);
$configurator->import(SetList::COMMON);
$configurator->import(SetList::NAMESPACES);
$configurator->import(SetList::CLEAN_CODE);
$configurator->rule(LineLengthFixer::class);
$configurator->lineEnding("\n");
};