aboutsummaryrefslogtreecommitdiffhomepage
path: root/ecs.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-04-28 11:02:51 +0900
committernsfisis <nsfisis@gmail.com>2024-04-28 17:38:19 +0900
commit88a77bc5846541e5d6009bc103da378650a649f3 (patch)
treeef4d3a57cc16bf230c3ac25068001f747e45b35e /ecs.php
parentc809cd661bba388d531f24c2ac578fbe6594f45c (diff)
downloadphp-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.tar.gz
php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.tar.zst
php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.zip
test: generate PHPUnit classes from WAST files
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',
+ ]);
};