What problem does it solve?
Refactoring code often breaks hidden dependencies, call graphs, and dynamic references, making changes risky and hard to validate.
Core Features & Use Cases
- Safe rename and restructure guidance: Renames, extracts, splits, moves, and restructures symbols with an order of operations that reduces breakage (interfaces → implementations → callers → tests).
- Graph-driven impact analysis: Maps dependents and execution flows so you update all affected areas instead of guessing.
- Context-aware refactoring checks: Uses incoming/outgoing reference context and validates the scope of changes before and after applying edits.
- Risk-focused mitigation: Flags scenarios like many callers and cross-area refs, and recommends verification via change detection and affected-process testing.
- Index freshness handling: Advises running an analysis command when the index is stale to ensure accurate results.
Quick Start
Use gitnexus-refactoring when you want to rename a symbol safely across the codebase by first previewing edits with a dry run, then applying changes, then verifying the affected scope and running the relevant tests.