From 4fa340f7e5468f270d23cf27b9e72bcff40ff0da Mon Sep 17 00:00:00 2001 From: cflmy Date: Mon, 30 Nov 2026 16:45:23 +0800 Subject: [PATCH] feat: promote lint P2 document rules Pin marqdo-lint C2 a9c48ed (PR #16/issue #13 P2) in the root gitlink tree. The component adds heading-jump and unused-import Analysis-3 rules (catalog 27, info only); root catalog/entries are unchanged. Evidence: docs/evidence/2026-11-30-lint-p2-promotion.md. --- docs/evidence/2026-11-30-lint-p2-promotion.md | 42 +++++++++++++++++++ tools/lint | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 docs/evidence/2026-11-30-lint-p2-promotion.md diff --git a/docs/evidence/2026-11-30-lint-p2-promotion.md b/docs/evidence/2026-11-30-lint-p2-promotion.md new file mode 100644 index 0000000..0545431 --- /dev/null +++ b/docs/evidence/2026-11-30-lint-p2-promotion.md @@ -0,0 +1,42 @@ +# Lint P2 规则晋升(A2 候选) + +Date: 2026-11-30. +Root candidate: `codex/promote-lint-p2`. +Component: `marqdo-lint` C2 `a9c48ed65776343b55c4ef6acab9fff5d0f6dff2` +(PR #16, issue #13 P2). + +## 1. 晋升内容 + +| 组件 | 旧 gitlink | 新 gitlink | +|---|---|---| +| lint | `cd01607fea2d89752f58afc8a4cbaa77a02759ff` | `a9c48ed65776343b55c4ef6acab9fff5d0f6dff2` | + +C2 证据: + +- 新增 `MQD-STRUCT-002`(父单元非 root 时标题层级跳级)与 + `MQD-REL-002`(import 未被 calls/references 使用),catalog 27 条,均 + `info`,默认门槛不变。 +- 规则只读公开 Analysis 3;单测覆盖跳级/未使用 import;真实 CLI Tool + install→lint→remove 验证 0 误报(inventory 示例)。 +- 本地:fmt/clippy、66 tests、check-no-legacy、package-tool PASS。 +- 平台 Woodpecker:push #22 / PR #23 success。 +- 组件证据:`docs/evidence/2026-11-30-doc-rules-p2.md`。 + +## 2. 根候选校验 + +```text +python3 scripts/check-layout.py +python3 scripts/check-layout.py --checkouts +python3 scripts/check-repo-conventions.py +bash scripts/integration.sh +``` + +本候选树执行;平台 CI 以根 PR 为准。集成必须显示 +`PASS: ecosystem candidate (single CLI/Worker/Bundle artifact, consumers green)` +且 lint gate 使用同一 CLI/Bundle 通过。 + +## 3. 边界 + +- 只更新 lint gitlink + 本文档;catalog/entry/其他组件不变;未创建 release。 +- 两条规则为 info,不改变现有失败门槛;跨文档导航/验证类规则仍属 #13 后续。 +- macOS/Windows、rc.6 官方归档消费仍 UNVERIFIED。 diff --git a/tools/lint b/tools/lint index cd01607..a9c48ed 160000 --- a/tools/lint +++ b/tools/lint @@ -1 +1 @@ -Subproject commit cd01607fea2d89752f58afc8a4cbaa77a02759ff +Subproject commit a9c48ed65776343b55c4ef6acab9fff5d0f6dff2