-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathecs.php
35 lines (32 loc) · 1.04 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\CastNotation\CastSpacesFixer;
use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/src',
])
->withPreparedSets(
psr12: true,
symplify: true,
arrays: true,
comments: true,
spaces: true,
namespaces: true,
controlStructures: true,
strict: true,
cleanCode: true,
)
->withSkip([
BinaryOperatorSpacesFixer::class,
CastSpacesFixer::class,
ClassAttributesSeparationFixer::class,
GeneralPhpdocAnnotationRemoveFixer::class,
LineLengthFixer::class,
NotOperatorWithSuccessorSpaceFixer::class,
]);