v2.2.0
What's New
Bug Fixes
- Dead export false positives (#6) — Type-only imports and call-graph consumed symbols now correctly excluded from dead export detection. Duplicate imports to the same target merged instead of silently dropped.
- Test file miscounting (#7) — Test files (
*.test.ts,*.spec.ts,__tests__/) excluded from coverage and coupling metrics. Coupling formula fixed:fanOut / (max(fanIn, 1) + fanOut). - Error handling + LOC off-by-one (#8) —
impact_analysisreturnsisError: truefor unknown symbols.file_contextsuggests similar paths when file not found (stripssrc//lib//app/prefixes). LOC count off-by-one fixed.
Features
- LEAF verdict (#9) — Single-file modules get
LEAFverdict instead ofJUNK_DRAWERinanalyze_forces. - Tension suppression — Type hub files and entry point files excluded from split recommendations.
- Path normalization —
file_contextstrips common prefixes and suggests matching paths on miss.
Stats
- 239 tests (64 new regression tests)
- Verified against 5 real codebases
- Zero false positives from fixes
Full Changelog: v2.0.2...v2.2.0