From 67a191f41a0323c68f0e185d5337eeebc969431c Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 18 Oct 2024 20:22:31 +0200 Subject: [PATCH] build: Move exclude from composer.json to .phpcs.xml Exclude the whole lib/ve/* folder instead of the node_modules folder The mediawiki ruleset sets exclude the node_modules folder in root since version 19.0.0 (ab87d2eb60) Change-Id: I585cc0524c179b2a9b472300a39d2d7c7b3ba383 --- .phpcs.xml | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.phpcs.xml b/.phpcs.xml index 3e6d391732..304acc8b34 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -15,4 +15,5 @@ . + ^lib/ve/* diff --git a/composer.json b/composer.json index 605a68ecc7..6fb0f8eaac 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "phpcbf" ], "phan": "phan -d . --long-progress-bar", - "phpcs": "phpcs -sp --cache --ignore=*/node_modules/" + "phpcs": "phpcs -sp --cache" }, "config": { "allow-plugins": {