feat(phase-2): implement file cleanup and fix warnings#285
Merged
laynepenney merged 2 commits intomainfrom Feb 8, 2026
Merged
Conversation
- Remove unused load_session function from main.rs - Add get_all_files() method to SymbolDatabase - Implement cleanup_deleted() to remove stale file entries - Update PRODUCTION_READINESS_PLAN with Phase 2 progress Progress on Phase 2: - ✅ Clean build with zero warnings - ✅ HIGH priority TODO: File cleanup for deleted/renamed files
- Add database methods: find_imports_with_symbol(), get_file_dependencies(), get_file_dependents() - Implement usage detection in find_references() by finding imports - Implement dependency graph traversal in get_dependencies() with BFS - Add support for both Imports and ImportedBy directions - Fix unused variable warnings Phase 2 complete: - ✅ Clean build with zero warnings - ✅ HIGH priority TODOs resolved (file cleanup, usage detection, dependency graph) - ✅ All 516 tests pass
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 2 of Production Readiness Plan: Clean up warnings and implement high-priority TODOs.
Changes
Phase 2 Complete ✅
Warnings Fixed:
load_sessionfunction frommain.rsHIGH Priority TODOs Resolved:
File Cleanup (
symbol_index/indexer.rs:561)get_all_files()method toSymbolDatabasecleanup_deleted()to remove stale entriesUsage Detection (
symbol_index/service.rs:206)find_imports_with_symbol()database methodfind_references()now finds all imports referencing a symbolDependency Graph (
symbol_index/service.rs:229)get_file_dependencies()andget_file_dependents()database methodsget_dependencies()ImportsandImportedBydirectionsDocumentation Updated:
PRODUCTION_READINESS_PLAN.mdwith Phase 2 progressVerification
Files Changed
codi-rs/docs/PRODUCTION_READINESS_PLAN.mdcodi-rs/src/main.rscodi-rs/src/symbol_index/database.rscodi-rs/src/symbol_index/indexer.rscodi-rs/src/symbol_index/service.rsRelated