Skip to content

Commit 76519b5

Browse files
authored
Merge pull request #3110 from emmericp/fix-ignore-in-check
fix: respect ignoreDir in --check CLI
2 parents c8ed198 + 63f7676 commit 76519b5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<!-- Add all new changes here. They will be moved under a version at release -->
55
* `CHG` When analyzing the literal table, only the first 100 items are analyzed at most.
66
* `CHG` When checking type matching for union types, only the first 100 items are checked at most.
7+
* `FIX` --check now respects ignoreDir setting
8+
* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument
79

810
## 3.13.7
911
`2025-3-10`

script/cli/check_worker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function export.runCLI()
247247
local max = #uris
248248
table.sort(uris) -- sort file list to ensure the work distribution order across multiple threads
249249
for i, uri in ipairs(uris) do
250-
if (i % numThreads + 1) == threadId then
250+
if (i % numThreads + 1) == threadId and not ws.isIgnored(uri) then
251251
files.open(uri)
252252
diag.doDiagnostic(uri, true)
253253
-- Print regularly but always print the last entry to ensure

0 commit comments

Comments
 (0)