From 2039695e10e1ba3889be59127f1200e8094d518e Mon Sep 17 00:00:00 2001 From: Paul Emmerich Date: Sat, 8 Mar 2025 07:01:17 +0100 Subject: [PATCH] fix: respect ignoreDir in --check CLI --- changelog.md | 1 + script/cli/check_worker.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 9fafc9649..1e384d532 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## Unreleased +* `FIX` --check now respects ignoreDir setting ## 3.13.3 * `CHG` Update Love2d version diff --git a/script/cli/check_worker.lua b/script/cli/check_worker.lua index 822c83dc6..9826c3cee 100644 --- a/script/cli/check_worker.lua +++ b/script/cli/check_worker.lua @@ -102,7 +102,7 @@ xpcall(lclient.start, errorhandler, lclient, function (client) local max = #uris table.sort(uris) -- sort file list to ensure the work distribution order across multiple threads for i, uri in ipairs(uris) do - if (i % numThreads + 1) == threadId then + if (i % numThreads + 1) == threadId and not ws.isIgnored(uri) then files.open(uri) diag.doDiagnostic(uri, true) -- Print regularly but always print the last entry to ensure that logs written to files don't look incomplete.