blob: 8e3bcbe416f184ab9d65d2a062d7f68b70236cc3 (
plain)
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
|
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
use PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/examples',
__DIR__ . '/tools',
]);
$ecsConfig->sets([
SetList::CLEAN_CODE,
SetList::PSR_12,
]);
$ecsConfig->rule(NativeFunctionInvocationFixer::class);
$ecsConfig->ruleWithConfiguration(GlobalNamespaceImportFixer::class, [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
]);
$ecsConfig->skip([
// Skip checking auto-generated files.
__DIR__ . '/tests/src/SpecTestsuites/Core',
]);
};
|