Skip to content

Commit 2039695

Browse files
committed
fix: respect ignoreDir in --check CLI
1 parent 8d3a4c8 commit 2039695

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `FIX` --check now respects ignoreDir setting
56

67
## 3.13.3
78
* `CHG` Update Love2d version

script/cli/check_worker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ xpcall(lclient.start, errorhandler, lclient, function (client)
102102
local max = #uris
103103
table.sort(uris) -- sort file list to ensure the work distribution order across multiple threads
104104
for i, uri in ipairs(uris) do
105-
if (i % numThreads + 1) == threadId then
105+
if (i % numThreads + 1) == threadId and not ws.isIgnored(uri) then
106106
files.open(uri)
107107
diag.doDiagnostic(uri, true)
108108
-- Print regularly but always print the last entry to ensure that logs written to files don't look incomplete.

0 commit comments

Comments
 (0)