-
Notifications
You must be signed in to change notification settings - Fork 45
/
ecs.php
27 lines (21 loc) · 824 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
<?php
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer;
use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');
$config->paths([
__DIR__ . '/src',
]);
$config->skip([
VisibilityRequiredFixer::class => ['*Spec.php'],
'tests/Application/*',
]);
$config->ruleWithConfiguration(
NativeFunctionInvocationFixer::class,
['include' => ['@all'], 'scope' => 'all', 'strict' => \true]);
$config->ruleWithConfiguration(
TrailingCommaInMultilineFixer::class,
['elements' => ['arrays']]);
};