Run a comprehensive health analysis of the current codebase.
Analyzes codebase for dead exports, circular dependencies, and duplicate code to report overall health score.
/plugin marketplace add Loctree/loctree-plugin/plugin install loctree-loctree@Loctree/loctree-pluginRun a comprehensive health analysis of the current codebase.
/loctree:health
loct health to analyze the codebaseWhen this command is invoked:
Run loct health in the project root
Summarize the findings:
If there are dead exports, suggest files that can be safely deleted.
If there are circular dependencies, explain the cycle and suggest how to break it.
Codebase Health Report
======================
Health Score: 78/100
Issues Found:
- 3 dead exports (unused code)
- 1 circular dependency cycle
Dead Exports:
- src/utils/deprecated.ts:oldHelper (not imported anywhere)
- src/api/legacy.ts:LegacyClient (not imported anywhere)
Circular Dependencies:
- src/a.ts → src/b.ts → src/c.ts → src/a.ts
Suggestion: Move shared types to src/types/shared.ts
Quick Wins:
- Delete src/utils/deprecated.ts (saves 45 LOC)
- Break cycle at src/b.ts → src/c.ts
/healthDocumentation health report - analyzes docs for freshness, coverage, naming violations, duplicates, and provides recommendations.