feat(hooks-post-tool-linter): D-2 lint rule test/comment touch (順位 101/103/106)#146
Merged
Conversation
…-1 完了反映 PR #145 (D-1) merge 後の post-merge-feedback で採用された 2 件 (Tier 3 #1 + #3) を todo 系列に登録し、analysis.md の Phase D section に D-1 land 状況と副産物を反映する。 順位 116 (Tier 3 XS、PR #145 T3-#1): - ADR-040 step_timeout 説明に sublinear / KV cache locality clarification 追記 - 実測値 600s 採択 / 保守上限 720s / sublinear 性の KV cache 根拠 順位 117 (Tier 3 S、PR #145 T3-#3): - coding-style.md § Cross-File Reference Lifecycle に ephemeral → permanent 知識移管 edit order を追記 - 3 ステップ原則 (① permanent target 先行作成・validate → ② 参照追加 → ③ 参照元削除) analysis.md Phase D section 更新: - D-1 land 状況 (PR #145、298 行、ZERO findings APPROVE) を table の状態列に反映 - 順位 115 を D-2 前 critical path として明示 - D-1 dogfood outcome として 4 項目記録 (skip 理由 / workflow gap 発見 / ADR-040 fix / migration codify) 順位 115 (Tier 1) の rationale に「post-merge-feedback Tier 1 #1 で再 validate 済」を追記。
Phase D dogfood の 2 本目 (D-2)。lint rule の test gap + struct doc + self-exclusion guards を bundled。 順位 101 (PR #140 T1-#1 採用): rule⑧ depth-1 root MD edge case test 2 件追加 - md_no_docs_relative_detects_root_level_back_reference (CLAUDE.md fixture) - md_no_docs_relative_detects_root_readme_back_reference (README.md fixture) - 「fire = true positive」整理を doc comment と test 名で明示 - root-level MD からの ../docs/ 参照は repo 外を指す broken link で真陽性が正しい挙動 順位 103 (PR #140 T1-#3 採用): CustomRule struct に lint runner field reference doc comment 追加 - サポート field 一覧 (id/pattern/severity/message/extensions/why/fix/example) を /// で記述 - planned field (paths、順位 102) も併記し設計-実装 gap を構造的に予防 - custom-lint-rules.toml 冒頭コメントに main.rs CustomRule struct への動線追加 順位 106 (PR #141 T2-#1 採用): self-exclusion invariant test に 2 false-green guards 追加 - assert!(path.exists()) — deployed TOML 削除 / 移動時の silent pass 抑止 - assert!(extensions contains "toml") — rule scope 変更時の silent degradation 抑止 - 各 assertion message に silent degradation のリスクと由来 (順位 106 / PR #141 T2-#1) を inline で記述 cargo test pass: hooks-post-tool-linter 95 tests (新規 2 + 既存 +1 強化、ZERO regression)。 PR #145 = D-1 と同様、lint_screen dogfood は順位 115 (env var override) land 前のため skip。
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughカスタムリント規則スキーマのドキュメント化とテスト強化、およびプロジェクト進捗追跡ドキュメントの更新。TOML 設定と Rust 実装でスキーマ仕様を明確化し、ルール検証テストを追加・強化。完了したタスクを整理し、Phase D dogfood 検証の現在の状態と次の follow-up タスクを記載。 Changesリント規則スキーマドキュメント化とテスト強化
プロジェクト進捗追跡と todo 管理
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Summary
Phase D dogfood の 2 本目 (D-2)。2 commits 構成:
docs(todo,analysis): post-merge-feedback PR #145 採用 2 件登録 + Phase D D-1 完了反映feat(hooks-post-tool-linter): D-2 lint rule code touch (順位 101/103/106)← D-2 本体D-2 本体: 3 件採用 task (順位)
md_no_docs_relative_detects_root_level_back_reference(CLAUDE.md fixture)md_no_docs_relative_detects_root_readme_back_reference(README.md fixture)../docs/参照は repo 外を指す broken link で真陽性)CustomRulestruct に lint runner field reference doc comment 追加///で記述paths、順位 102) も併記し設計-実装 gap を構造的に予防custom-lint-rules.toml冒頭コメントにmain.rsCustomRulestruct への動線追加 (line 番号ではなく symbol 名で参照)assert!(path.exists())— deployed TOML 削除 / 移動時の silent pass 抑止assert!(extensions contains "toml")— rule scope 変更時の silent degradation 抑止diff stat (D-2 本体 = commit 2)
src/hooks-post-tool-linter/src/main.rsdoc comment + 2 new tests + 2 guards)custom-lint-rules.toml動線追加)docs/todo6.md+docs/todo-summary.md完了 entry 削除)D-2 lint_screen dogfood: skipped (D-1 同様)
D-1 着手時に発見した workflow gap (jj auto-snapshot vs session-only opt-in) は順位 115 (
LINT_SCREEN_ENABLEDenv var override) で解消予定。本 PR ではまだ未 land のため、lint_screen dogfood は引き続き skip。順位 115 land 後の D-3 で初の実 dogfood を実施。Test plan
pathsfilter 実装、順位 102) で env var override workflow を実証関連
🤖 Generated with Claude Code
Summary by CodeRabbit
ドキュメント
改善