Internalize Space.toAction and RondelState.withoutPendingMove#155
Conversation
Both helpers are only consumed by sibling files inside the Imperium assembly (Rondel/Movement.fs and Rondel/Invoices.fs). Narrowing them to `val internal` follows the existing pattern for cross-file helpers (e.g. Space.distance, RondelBillingId.create) and removes them from the public surface without altering behavior. AGENTS.md example list updated to mention the two new entries.
|
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 (3)
📝 WalkthroughWalkthroughThis PR restricts the public API surface by marking two helper functions as assembly-internal. ChangesAssembly-internal helper visibility
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Space.toActionandRondelState.withoutPendingMovetoval internal. Both helpers are consumed exclusively by sibling files inside theImperiumassembly (Rondel/Movement.fs,Rondel/Invoices.fs) — no consumer inImperium.Web,Imperium.Terminal, or the test project.Space.distance,RondelBillingId.create).AGENTS.mdexample list to mention the two new entries.No behavior changes; purely a public-surface narrowing.
Test plan
dotnet fantomas .— 0 reformatted, 0 erroreddotnet build Imperium.slnx— 0 warnings, 0 errorsdotnet test— 161 passed, 0 faileddotnet run --no-build --project tests/Imperium.UnitTests/Imperium.UnitTests.fsproj -- --render-spec-markdown— renders successfullySummary by CodeRabbit
Documentation
Refactor