-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathecs.php
More file actions
19 lines (16 loc) · 827 Bytes
/
ecs.php
File metadata and controls
19 lines (16 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
use PhpCsFixer\Fixer\ConstantNotation\NativeConstantInvocationFixer;
use PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer;
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/bin', __FILE__])
// add a single rule
->withRules([NoUnusedImportsFixer::class, GlobalNamespaceImportFixer::class, NativeConstantInvocationFixer::class])
->withSets([
'vendor/symplify/easy-coding-standard/config/set/clean-code.php',
'vendor/symplify/easy-coding-standard/config/set/common.php',
'vendor/symplify/easy-coding-standard/config/set/psr12.php',
'vendor/symplify/easy-coding-standard/config/set/symplify.php',
])
->withParallel(120);