Repository navigation
test(docs): terminology checker fixtures and allowlist audit - #161
Merged
Merged
Conversation
任务书三第一项:给四个检查器补误报/漏报夹具,核对 PR 门对重命名 与移动的净增长,并逐条核豁免表。first_use 46 条全部是规则豁免。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
定位与重述
这是四轴评审任务书三针对 Codex PR 甲(#156)的测试 PR,位置在文档构建与机械检查层,不是设计正文施工。要解决的问题:#156 把四个检查器和 PR 门写进了 CI,但只拿当前文档树当绿测,误报、漏报、豁免表和「重命名/移动算不算自建」都没有夹具。本 PR 补上这些对抗样本,并逐条核豁免表——结论是
first_use_terms.allowlist46 条全部是把规则豁免掉了,不是正文不该带对照。对照补回是写作改动,留给 Fable;本 PR 不改docs/design/**。本地验收:
bash src/build/docs/check_docs_toolchain_fixtures.sh通过cd src && ./buck2 test root//build/docs:check_docs_toolchain_fixtures通过perl -c src/build/docs/doc_style_lint.pl与git diff --check通过当前生效约束集
sh_test,消费repo//:docs_tree与检查器本身,不另建平行构建入口。业界方案调研
本 PR 新增一个测试驱动脚本
src/build/docs/check_docs_toolchain_fixtures.sh(不是产品检查器)。doc_style_lint.pl,与docs/research/docs-lint.md已采用的「自写脚本 + Buck2 sh_test」一致。--find-renames让纯移动保持 0/0,build(docs): enforce terminology rules in CI #156 已写进.github/workflows/pr-contract.yml。本测试复制同一 awk 并在临时仓库里验证 rename/move/净增 101 行,不改 workflow,也不自建第二套 diff 解析器。check_*目标;本目标只锁检查器语义和豁免表与现状的一一对应。