-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
39 lines (35 loc) · 1.09 KB
/
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
30
31
32
33
34
35
36
37
38
39
<?php
use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ECSConfig $config): void {
$config->paths([
__DIR__ . '/bin/portal',
__DIR__ . '/src',
__DIR__ . '/examples/symfony-app/src',
__DIR__ . '/examples/goldspecdigital-oooas',
__DIR__ . '/examples/schema-org',
__DIR__ . '/examples/swagger-php',
__DIR__ . '/examples/swaggest',
]);
$config->skip([
__DIR__ . '/examples/*/vendor',
]);
$config->cacheDirectory(sys_get_temp_dir() . '/ecs');
$config->sets([
SetList::PSR_12,
SetList::CLEAN_CODE,
SetList::ARRAY,
SetList::COMMON,
SetList::COMMENTS,
SetList::CONTROL_STRUCTURES,
SetList::DOCBLOCK,
SetList::NAMESPACES,
SetList::SPACES,
]);
$config->skip([
MethodChainingIndentationFixer::class => [
__DIR__ . '/src/Bundle/DependencyInjection/Configuration.php'
],
]);
};