Continue marqdo-lint#13 with two more Analysis-3-only document-architecture
rules (catalog 27, both info, default gate unchanged):
- MQD-STRUCT-002: a heading skips more than one level below a real parent
unit; top-level H2 under the document root is deliberately exempt.
- MQD-REL-002: an explicit import's resolved module is never named by a call
target or a Markdown reference target.
Rules + unit tests in src/rules/structure.rs, RULES.md catalog, rule count in
tests/cli.rs. Evidence: docs/evidence/2026-11-30-doc-rules-p2.md (66 tests,
package-tool, real CLI install/lint/remove, 0 diagnostics on the inventory
example). No parser copy, no document language, no new dependency.
cflmy
merged commit a9c48ed657 into main2026-11-30 16:45:10 +08:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
概述
继续
marqdo-lint#13:基于公开 Analysis 3 新增两条文档结构规则(catalog 27,均为info,不改变默认门槛),不复制 parser、不新增文档语言。交付
MQD-STRUCT-002:父单元非 root 时标题层级跳级(H2 下直接 H4 等);顶层 H2 位于 root 下不误报。MQD-REL-002:显式 import 的 resolved 模块未被任何 call target / Markdown reference target 使用。src/rules/structure.rs规则+单测;docs/RULES.md;tests/cli.rs规则数 25→27。docs/evidence/2026-11-30-doc-rules-p2.md。验证(真实,Linux x86_64 / glibc 2.43)
未验证:macOS/Windows、正式 v0.3.0 发布、rc.6 官方归档消费(#11)。两条规则为 info,不改变现有 CI 行为。
refs #13