-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathecs.php
25 lines (21 loc) · 820 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\Import\FullyQualifiedStrictTypesFixer;
use PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer;
use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withCache(directory: __DIR__ . '/.build/ecs/', namespace: getcwd())
->withPaths([__DIR__ . '/src', __DIR__ . '/test'])
->withRootFiles()
->withConfiguredRule(FullyQualifiedStrictTypesFixer::class, [
'import_symbols' => true,
])
->withConfiguredRule(GlobalNamespaceImportFixer::class, [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
])
->withRules([LineLengthFixer::class])
->withPreparedSets(psr12: true, common: true)
;