MCPcopy Create free account
hub / github.com/WJX20/claude-code / checkCodeSize

Function checkCodeSize

scripts/health-check.ts:45–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43// 1. 代码规模
44// ---------------------------------------------------------------------------
45async function checkCodeSize() {
46 const tsFiles = await $`find src -name '*.ts' -o -name '*.tsx' | grep -v node_modules`.text();
47 const fileCount = tsFiles.trim().split("\n").filter(Boolean).length;
48 add("TypeScript 文件数", fileCount, "info");
49
50 const loc = await $`find src -name '*.ts' -o -name '*.tsx' | grep -v node_modules | xargs wc -l | tail -1`.text();
51 const totalLines = loc.trim().split(/\s+/)[0] ?? "?";
52 add("总代码行数 (src/)", totalLines, "info");
53}
54
55// ---------------------------------------------------------------------------
56// 2. Lint 检查

Callers 1

health-check.tsFile · 0.85

Calls 2

textMethod · 0.80
addFunction · 0.70

Tested by

no test coverage detected