Skip to content

feat(lint-md): limit --fix write concurrency using runTasksWithLimit#55

Merged
hustcc merged 1 commit into
masterfrom
feat/limit-fix-write-concurrency
Jun 22, 2026
Merged

feat(lint-md): limit --fix write concurrency using runTasksWithLimit#55
hustcc merged 1 commit into
masterfrom
feat/limit-fix-write-concurrency

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

close #54

当前 --fix 模式使用 Promise.all 无限制并发写入所有文件,大批量 fix 时可能打满 I/O。

复用已有的 runTasksWithLimit,将写入并发限制为 threadCount(默认 CPU 核心数),与读取/lint 并发统一。

改动

  • src/lint-md.ts:导入 runTasksWithLimit,替换 Promise.all 为有并发限制的写入

验证

  • Build 通过
  • 25 个测试全绿

@hustcc hustcc merged commit 5cd4010 into master Jun 22, 2026
5 checks passed
@hustcc hustcc deleted the feat/limit-fix-write-concurrency branch June 22, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: limit --fix write concurrency

2 participants