forked from verdigado/sunflower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
40 lines (36 loc) · 789 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
40
<?php
/**
* ESC configuration file
*
* @package sunflower
*/
declare(strict_types=1);
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayListItemNewlineFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
return ECSConfig::configure()
->withPaths(
array(
__DIR__ . '/functions',
__DIR__ . '/inc',
__DIR__ . '/template-parts',
__DIR__ . '/',
)
)
->withRules(
array(
NoUnusedImportsFixer::class,
ArraySyntaxFixer::class,
ArrayListItemNewlineFixer::class,
)
)
->withPreparedSets(
spaces: false,
arrays: true,
namespaces: true,
comments: true,
docblocks: true,
psr12: true,
);