diff --git a/.claude/custom-lint-rules.toml b/.claude/custom-lint-rules.toml index 581ce72..51ff18a 100644 --- a/.claude/custom-lint-rules.toml +++ b/.claude/custom-lint-rules.toml @@ -134,7 +134,7 @@ good = 'try { $data = ConvertFrom-Json $raw -ErrorAction Stop } catch { Write-Er # ─── ルール⑤: Markdown 非 ASCII GFM アンカー検出 (mutable anchor) ─── # -# 由来: PR #89 で CodeRabbit が `[docs/todo.md](todo.md#推奨実行順序サマリー)` を Major 指摘。 +# 由来: PR #89 で CodeRabbit が日本語 heading への GFM 自動 anchor link を Major 指摘。 # 全リポジトリ grep で 3 ファイルにわたる同一パターンを発見。GFM の自動 anchor 生成は # heading text のスラッグ化で日本語含む heading は脆弱な ID を生成し、heading text 変更で # silent break する。 diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index daacdd2..0a2f287 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ // markdownlint-cli2 configuration -// Initial rule set per docs/todo.md "Markdown linter hook 統合" task. +// Initial rule set introduced in PR #88 (markdownlint-cli2 PostToolUse hook integration). // See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md { "config": { diff --git a/src/hooks-pre-tool-validate/src/main.rs b/src/hooks-pre-tool-validate/src/main.rs index 4a80067..f131475 100644 --- a/src/hooks-pre-tool-validate/src/main.rs +++ b/src/hooks-pre-tool-validate/src/main.rs @@ -313,8 +313,7 @@ fn preset_polling_anti_pattern() -> Vec { **設計原則:** Claude Code の background task と task-notification はイベント駆動で 完了通知を配信する。polling は token を浪費するだけで何も加速しない。 -詳細: ADR-018 (post-pr-monitor は daemon + state file で自走)、 -docs/todo.md の「Polling anti-pattern 検出ルール」を参照。"#; +詳細: ADR-018 (post-pr-monitor は daemon + state file で自走) を参照。"#; // \bdo\b 制約により以下の false positive を排除: // - echo "wait until ready"; sleep 1 (string 中の until) // - git log --until=yesterday; sleep 1 (フラグ引数の until)