()
| 43 | // 1. 代码规模 |
| 44 | // --------------------------------------------------------------------------- |
| 45 | async 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 检查 |
no test coverage detected