-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathecs.php
24 lines (19 loc) · 853 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
<?php
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ECSConfig $configurator): void {
$configurator->paths([__DIR__ . '/src', __DIR__ . '/tests']);
// A. full sets
$configurator->sets([
SetList::CLEAN_CODE,
SetList::PSR_12
]);
// B. standalone rule
$configurator->ruleWithConfiguration(ArraySyntaxFixer::class, [
'syntax' => 'short',
]);
$configurator->skip(['Unused variable $deleted.' => ['src/GitElephant/Objects/Diff/DiffChunk.php'], 'Unused variable $new.' => ['src/GitElephant/Objects/Diff/DiffChunk.php']]);
};