You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
decide: wire in or remove code that is written but not used (bundling engine, AstNode.parent, context stats) #792
Removing the blanket #[allow(dead_code, unused)] showed code that is complete but never called by the product, and that is tied to something users can see or that looks like a half-finished feature:
The file bundling engine (src/engine/bundling/, about 1,100 lines: grouping by directory and language, FileGroup, GroupingKey, LanguageFamily, GroupingStats). bundling: is a documented .cora.yaml section (docs/configuration.md) and BundlingConfig is parsed, but review does not group files with it. The roadmap lists it as done (feat: File bundling — parallel per-bundle review for large changesets #115).
ContextOutput fields line, raw and stats (src/engine/context/types.rs): set, never read ("consumed in v0.5 when bundling wired").
diff_parser::extract_added_lines ("used by bundling in v0.5").
AstNode.parent (src/index/ast.rs): the parent scope of a method or field is computed at 64 sites and then dropped, so the index does not keep it.
Until this is decided these items keep a narrow #[allow(dead_code)] that points here.
Why
Either the feature should exist (then wire it in and test it: smart grouping for large reviews, parent scope in the index) or the code and the config key should go (and the docs and roadmap say so). Leaving it half-way costs reading time and promises something the product does not do.
Testing
Decision recorded here by the owner. If wired in: tests that show the behavior (grouping changes the review batches, parent scope is searchable). If removed: cargo check stays warning-free, the config key is rejected or ignored with a clear message, and the docs and roadmap are corrected.
Activity
refactor: remove the unused file bundling engine
docs(changelog): uniform spacing under Unreleased