aboutsummaryrefslogtreecommitdiffhomepage
path: root/ecs.php
diff options
context:
space:
mode:
Diffstat (limited to 'ecs.php')
-rw-r--r--ecs.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/ecs.php b/ecs.php
index af807fe..8e3bcbe 100644
--- a/ecs.php
+++ b/ecs.php
@@ -2,16 +2,17 @@
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;
-use PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer;
-use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
return function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/examples',
+ __DIR__ . '/tools',
]);
$ecsConfig->sets([
SetList::CLEAN_CODE,
@@ -23,4 +24,8 @@ return function (ECSConfig $ecsConfig): void {
'import_constants' => true,
'import_functions' => true,
]);
+ $ecsConfig->skip([
+ // Skip checking auto-generated files.
+ __DIR__ . '/tests/src/SpecTestsuites/Core',
+ ]);
};