惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(lint): split source lint shards · openclaw/openclaw@1...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -19,7 +19,8 @@ const CORE_SHARD = {

1919

name: "core",

2020

args: ["--tsconfig", "config/tsconfig/oxlint.core.json", "src", "ui", "packages"],

2121

};

22-

const CORE_SPLIT_TARGETS = ["src", "ui", "packages"];

22+

const CORE_TS_CONFIG = "config/tsconfig/oxlint.core.json";

23+

const CORE_SPLIT_TARGETS = ["ui", "packages"];

2324

const EXTENSIONS_SHARD = {

2425

name: "extensions",

2526

args: ["--tsconfig", EXTENSION_TS_CONFIG, EXTENSIONS_DIR],

@@ -36,18 +37,28 @@ export function createOxlintShards({

3637

readDir = fs.readdirSync,

3738

splitCore = false,

3839

} = {}) {

39-

const coreShards = splitCore ? createCoreOxlintShards() : [CORE_SHARD];

40+

const coreShards = splitCore ? createCoreOxlintShards({ cwd, readDir }) : [CORE_SHARD];

4041

const extensionShards =

4142

platform === "win32" ? createWindowsExtensionShards({ cwd, env, readDir }) : [EXTENSIONS_SHARD];

42434344

return [...coreShards, ...extensionShards, SCRIPTS_SHARD];

4445

}

454646-

export function createCoreOxlintShards() {

47-

return CORE_SPLIT_TARGETS.map((target) => ({

48-

name: `core:${target}`,

49-

args: ["--tsconfig", "config/tsconfig/oxlint.core.json", target],

47+

export function createCoreOxlintShards({ cwd = process.cwd(), readDir = fs.readdirSync } = {}) {

48+

const sourceShards = listSourceRootTargetGroups({ cwd, readDir }).map((targets) => ({

49+

name: targets.length === 1 ? `core:${targets[0].replaceAll("/", ":")}` : "core:src:root",

50+

args: ["--tsconfig", CORE_TS_CONFIG, ...targets],

5051

}));

52+

const sourceEntries = sourceShards.length > 0 ? sourceShards : [createCoreShard("src")];

53+54+

return [...sourceEntries, ...CORE_SPLIT_TARGETS.map((target) => createCoreShard(target))];

55+

}

56+57+

function createCoreShard(target) {

58+

return {

59+

name: `core:${target}`,

60+

args: ["--tsconfig", CORE_TS_CONFIG, target],

61+

};

5162

}

52635364

export function createWindowsExtensionShards({

@@ -151,6 +162,26 @@ function listExtensionEntries({ cwd, readDir }) {

151162

};

152163

}

153164165+

function listSourceRootTargetGroups({ cwd, readDir }) {

166+

let entries;

167+

try {

168+

entries = readDir(path.join(cwd, "src"), { withFileTypes: true });

169+

} catch {

170+

return [];

171+

}

172+173+

const dirs = entries

174+

.filter((entry) => entry.isDirectory())

175+

.map((entry) => `src/${entry.name}`)

176+

.toSorted((left, right) => left.localeCompare(right));

177+

const rootFiles = entries

178+

.filter((entry) => entry.isFile() && OXLINT_SOURCE_FILE_PATTERN.test(entry.name))

179+

.map((entry) => `src/${entry.name}`)

180+

.toSorted((left, right) => left.localeCompare(right));

181+182+

return [...dirs.map((target) => [target]), ...(rootFiles.length > 0 ? [rootFiles] : [])];

183+

}

184+154185

export async function main(extraArgs = process.argv.slice(2), runtimeEnv = process.env) {

155186

const runner = path.resolve("scripts", "run-oxlint.mjs");

156187

const shardArgs = parseShardRunnerArgs(extraArgs);