集約ハッシュの説明を実際の選別後ファイル集合に合わせる#101
Conversation
実装は walk_sources の選別 (隠しファイル・C++ ソース以外の拡張子・ バイナリを除外) 後のソースファイルを対象にしており、spec と hash.rs のコメントの「全ファイル」という記述と食い違っていた。変更検知の節 にも、選別外のファイルでは検知しないという帰結を書き足す。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughSummary by CodeRabbit
Walkthroughライブラリ集約ハッシュの対象を全ファイルから選別済みソースファイルへ明確化し、選別条件と変更検知の範囲を日本語・英語仕様書およびコードコメントに反映した。 Changesライブラリハッシュ仕様
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/spec.md`:
- Line 133: docs/spec.md の 133-133 と docs/spec.ja.md の 133-133
を、src/fs/source.rs の walk_sources が選択する条件に合わせ、拡張子なしの全パス、.c を含む許可拡張子、NUL
バイトによる簡易バイナリ判定を正確に記述してください。docs/spec.md の 68-68 と docs/spec.ja.md の 68-68
は、「バンドルに影響しないファイル」ではなく、walk_sources の選別で除外されたファイルの変更のみが検知対象外となるよう修正してください。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8d385acc-d61d-4fe4-ba9e-79c92621858e
📒 Files selected for processing (3)
docs/spec.ja.mddocs/spec.mdsrc/library/hash.rs
「C++ ソース以外の拡張子を除く」は .c 等の C 由来拡張子を含む実装 より狭く、拡張子なしはヘッダーに限らず全ファイルが対象で、バイナリ 判定は NUL バイトの簡易判定 (レビュー指摘)。変更検知節の「バンドル に影響しない」という言い方も、選別外という事実ベースの表現に直す。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Closes #83
概要
集約ハッシュの実装 (
hash::aggregate) はfs::source::walk_sourcesの選別後 — 隠しファイル・C++ ソース以外の拡張子・バイナリを除外し、拡張子なしのヘッダーは含む — のソースファイルを対象にしているが、spec のtags.json節とhash.rs自身のコメントは「path以下の全ファイル」と説明していた。文書とコメントを実装に合わせる。docs/spec.*のhashフィールドの説明を選別後の集合に修正し、選別が識別子抽出の走査対象と共通であることを明記docs/spec.*の「ライブラリの変更検知」節に、README やバイナリ資産などバンドルに影響しないファイルの変更では検知しないという帰結を追記src/library/hash.rsのモジュール・関数コメントも同様に修正 (コードの動作変更なし)fmt --check・clippy pedantic・test 通過済み。
🤖 Generated with Claude Code