Review notes for site items S1–S5

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 00:37:25 -04:00
1 parent 4d8bd05633
commit ff92f26af0
11 files changed
+59

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
FAIL
tests/scripts/comments.py:68 — 新增的 site TypeScript/CSS 扫描漏检跨行块注释:跨行检测的后缀列表仅含 .c、.h、.js,.ts 与 .css 的单行正则也匹配不到跨行块。复现:在独立临时根目录的 site/src/probe.ts 或 site/src/probe.css 写入 `/* A comment\n spanning lines. */\n`(将 \n 写为真实换行),运行 `python3 tests/scripts/comments.py <临时根目录>`;两种后缀均退出 0,并声称每条注释只有一行,违反 agents.md 与 site/TASKS.md 的注释规则。同样运行 comments-rules.sh 仍通过,现有测试未覆盖这两种新增后缀。修复方向:将 .ts、.css 纳入跨行块检测,并补上两种后缀的失败回归用例。