forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
35 lines (30 loc) · 1.01 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\ClassNotation\SelfAccessorFixer;
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',
// skip for enum types
__DIR__ . '/rules/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector.php',
],
SelfAccessorFixer::class => ['*/*Rector.php'],
])
->withRootFiles();