Repository navigation
refactor(core): drop unused seenMockIndexKeys in tags writers - #4254
Conversation
The tags and split-tags writers track mock index entries with mockIndexEntries.find(), so the seenMockIndexKeys set is only written and never read. Remove it together with the key it was built from.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughBoth tag-mode writers remove unused mock index key tracking. Mock index entries continue to be grouped by mock extension and directory. ChangesMock index tracking
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to No actionable merge risk was found in this change; it is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
@orval/angular
@orval/axios
@orval/core
@orval/effect
@orval/fetch
@orval/hono
@orval/mcp
@orval/mock
orval
@orval/pinia-colada
@orval/query
@orval/solid-start
@orval/swr
@orval/zod
commit: |
writeTagsModeandwriteSplitTagsModecreate aseenMockIndexKeysset and add anindexKeyto it, but nothing ever reads the set. These writers now find index entries withmockIndexEntries.find(...). The set looks like a leftover from #3559, where it was checked withhas()before an entry was added. This PR removes the set and the key built for it (6 lines, no behavior change).split-mode.tsandsingle-mode.tsstill check the same set withhas(), so I left them alone.Checks run locally:
vp test run src/writersinpackages/core: 18 files, 243 tests passedtsc --noEmit -p packages/core,vp fmt --checkandvp linton the changed files were cleanI found this with a static check for collections that are written but never read, and reviewed the change by hand.
https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq
Summary by CodeRabbit