iter(g06): 组件数门禁覆盖 README

This commit is contained in:
HIsheR
2026-10-23 19:08:35 +08:00
parent 8d439f068f
commit b6c948998b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -410,7 +410,7 @@
"title": "组件数门禁扩展 README 计数文本", "title": "组件数门禁扩展 README 计数文本",
"motivation": "f01 的计数漂移校验只覆盖 AGENTS/ARCHITECTURE,README 的「N 个 DOM 组件」文本仍可漂移", "motivation": "f01 的计数漂移校验只覆盖 AGENTS/ARCHITECTURE,README 的「N 个 DOM 组件」文本仍可漂移",
"acceptance": "checkCountDocs 扫描列表加入 README.md,漂移即 verify 失败;npm run check 全绿", "acceptance": "checkCountDocs 扫描列表加入 README.md,漂移即 verify 失败;npm run check 全绿",
"status": "open", "status": "done",
"notes": "自补:f01 收尾" "notes": "自补:f01 收尾"
} }
] ]
+1 -1
View File
@@ -610,7 +610,7 @@ function checkReadme(pkgs) {
function checkCountDocs(actual) { function checkCountDocs(actual) {
const issues = []; const issues = [];
const re = /(\d+)\s*个(?:\s*DOM\s*)?组件/; const re = /(\d+)\s*个(?:\s*DOM\s*)?组件/;
for (const name of ['AGENTS.md', 'ARCHITECTURE.md']) { for (const name of ['AGENTS.md', 'ARCHITECTURE.md', 'README.md']) {
const file = path.join(ROOT, name); const file = path.join(ROOT, name);
if (!fs.existsSync(file)) continue; // 卫语句:文档缺失不校验 if (!fs.existsSync(file)) continue; // 卫语句:文档缺失不校验
fs.readFileSync(file, 'utf8').split(/\r?\n/).forEach((line, i) => { fs.readFileSync(file, 'utf8').split(/\r?\n/).forEach((line, i) => {