-
-
Notifications
You must be signed in to change notification settings - Fork 359
/
ecs.php
34 lines (29 loc) · 918 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\Casing\LowercaseKeywordsFixer;
use PhpCsFixer\Fixer\Phpdoc\PhpdocTypesFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPreparedSets(symplify: true, common: true, psr12: true)
->withPaths([
__DIR__ . '/bin',
__DIR__ . '/src',
__DIR__ . '/rules',
__DIR__ . '/rules-tests',
__DIR__ . '/tests',
__DIR__ . '/utils',
__DIR__ . '/config',
__DIR__ . '/build/build-preload.php',
])
->withSkip([
'*/Source/*',
'*/Fixture/*',
'*/Expected/*',
PhpdocTypesFixer::class => [
// double to Double false positive
__DIR__ . '/rules/Php74/Rector/Double/RealToFloatTypeCastRector.php',
],
// change constant to lower
LowercaseKeywordsFixer::class,
])
->withRootFiles();