From 099e7a80c48080c5da6f4c0faf886559b3508280 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Thu, 12 Oct 2023 16:52:22 -0500 Subject: [PATCH] Exclude node_modules directories from phpcs The `flatted` module in lib/ve/node_modules includes some php files that keep causing errors. Add the --cache just because it seems to be common practice in other MW extensions. Change-Id: Ia791e569587d76e991711b93011cb1df3796f532 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b899eb803f..9e7979db1e 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,6 @@ "phpcbf" ], "phan": "phan -d . --long-progress-bar", - "phpcs": "phpcs -sp" + "phpcs": "phpcs -sp --cache --ignore=*/node_modules/" } }