Releases: supermodeltools/dead-code-hunter
Releases · supermodeltools/dead-code-hunter
v2
Dead Code Hunter v2
Finds unused code in your codebase using Supermodel static analysis.
Breaking changes from v1
dead-code-jsonoutput schema changed — candidates now includetype,confidence, andreasonfields. If you parse this output programmatically, update your code.- PR comment format updated — now includes Type and Confidence columns with color-coded badges.
What's new
- API-driven analysis — uses the
/v1/analysis/dead-codeendpoint for server-side symbol-level import analysis - Broader detection — finds unused functions, classes, methods, interfaces, types, variables, and constants (v1 only detected functions)
- Confidence levels — each finding includes high/medium/low confidence and a reason
- Orphaned file detection — detects exports in files that have no importers anywhere in the codebase
- Transitive dead code — identifies code only called by other dead code
Migration
Update your workflow:
-- uses: supermodeltools/dead-code-hunter@v1
+- uses: supermodeltools/dead-code-hunter@v2All inputs remain the same. No configuration changes needed.
v1
What's Changed
- Test: Self-analysis with intentional dead code by @jonathanpopham in #2
- feat: Improve error messages with actionable guidance by @jonathanpopham in #3
- fix: Use UUID for idempotency key to scale to concurrent users by @jonathanpopham in #4
Full Changelog: https://github.com/supermodeltools/dead-code-hunter/commits/v1