From f26677a0ae3e2c4d34e668c726ca1a5c253ad47b Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 16 Dec 2023 23:55:34 +0100 Subject: [PATCH] [BUGFIX] Avoid JSON-linting the Composer cache directory (#1074) Also use stricter exclusion paths to avoid skipping JSON files that we actually want to lint. This change speeds up JSON lint a lot in cases where Composer from within `runTests.sh` has been used (which creates the `.cache/` directory). Fixes #1046 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0950f32..fcdf543 100644 --- a/composer.json +++ b/composer.json @@ -128,7 +128,7 @@ "@coverage:create-directories", ".Build/bin/phpunit -c ./Tests/Unit/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit" ], - "ci:json:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -name '*.json' | xargs -r php .Build/bin/jsonlint -q", + "ci:json:lint": "find . ! -path '*/.cache/*' ! -path '*/.Build/*' ! -path '*/node_modules/*' -name '*.json' | xargs -r php .Build/bin/jsonlint -q", "ci:php": [ "@ci:php:cs-fixer", "@ci:php:lint",