-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
47 lines (39 loc) · 1.51 KB
/
ecs.php
File metadata and controls
47 lines (39 loc) · 1.51 KB
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
40
41
42
43
44
45
46
47
<?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 $ecsConfig): void {
$ecsConfig->parallel();
$ecsConfig->paths([
__DIR__ . '/src',
__DIR__ . '/config/bundles.php',
__DIR__ . '/.ecs',
__DIR__ . '/ecs.php',
__DIR__ . '/bin/console',
__DIR__ . '/public/index.php',
]);
$ecsConfig->import(__DIR__ . '/.ecs/alias.php');
$ecsConfig->import(__DIR__ . '/.ecs/arrays.php');
$ecsConfig->import(__DIR__ . '/.ecs/basic.php');
$ecsConfig->import(__DIR__ . '/.ecs/casing.php');
$ecsConfig->import(__DIR__ . '/.ecs/cast.php');
$ecsConfig->import(__DIR__ . '/.ecs/class-definition.php');
$ecsConfig->import(__DIR__ . '/.ecs/comment.php');
$ecsConfig->import(__DIR__ . '/.ecs/constant.php');
$ecsConfig->import(__DIR__ . '/.ecs/controll-structure.php');
$ecsConfig->import(__DIR__ . '/.ecs/language-construct.php');
$ecsConfig->import(__DIR__ . '/.ecs/operator.php');
$ecsConfig->import(__DIR__ . '/.ecs/phpdoc.php');
$ecsConfig->import(__DIR__ . '/.ecs/spacing.php');
$ecsConfig->dynamicSets(['@Symfony']);
$ecsConfig->sets([
SetList::COMMON,
SetList::PSR_12,
SetList::CLEAN_CODE,
SetList::SYMPLIFY,
]);
$ecsConfig->ruleWithConfiguration(LineLengthFixer::class, [
'inline_short_lines' => false,
]);
};