-
Notifications
You must be signed in to change notification settings - Fork 17
/
ecs.php
39 lines (30 loc) · 1006 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
30
31
32
33
34
35
36
37
38
39
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
use PhpCsFixer\Fixer\Phpdoc\PhpdocLineSpanFixer;
use PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([__DIR__ . "/src", __DIR__ . "/tests"]);
$ecsConfig->ruleWithConfiguration(ArraySyntaxFixer::class, [
"syntax" => "short",
]);
$ecsConfig->rules([
// FullyQualifiedStrictTypesFixer::class,
]);
$ecsConfig->skip([
// ClassAttributesSeparationFixer::class,
NoSuperfluousPhpdocTagsFixer::class,
]);
$ecsConfig->sets([
SetList::SPACES,
SetList::ARRAY,
SetList::DOCBLOCK,
SetList::PSR_12,
]);
$ecsConfig->ruleWithConfiguration(PhpdocLineSpanFixer::class, [
"property" => "single",
"const" => "single",
]);
};