-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathecs.php
More file actions
40 lines (36 loc) · 1.16 KB
/
ecs.php
File metadata and controls
40 lines (36 loc) · 1.16 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\Casing\ConstantCaseFixer;
use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
/**
* https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/rules/index.rst
* https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/index.rst
*/
/**
* https://github.com/slevomat/coding-standard
*/
return ECSConfig
::configure()
->withPaths(
[
__DIR__ . '/src',
__DIR__ . '/tests/Replicator',
]
)
->withRootFiles()
->withParallel()
->withSpacing(indentation: Option::INDENTATION_TAB, lineEnding: PHP_EOL)
->withPreparedSets(psr12: true, common: true, symplify: true, cleanCode: true)
->withSkip([
GeneralPhpdocAnnotationRemoveFixer::class,
OrderedClassElementsFixer::class,
LineLengthFixer::class,
ConstantCaseFixer::class,
NotOperatorWithSuccessorSpaceFixer::class,
])
;