feat(enrichment): unused-export / dead-on-arrival detector analyzer - #3582
Conversation
Detect net-new exports with zero repo references via bounded GitHub Code Search so reviewers catch dead public surface early. Fixes JSONbored#2025
Check headSha same-file references before Code Search and flag exports absent from the default-branch index.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 18:09:31 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3582 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 311 311
Lines 31750 31750
Branches 11612 11612
=======================================
Hits 29581 29581
Misses 1517 1517
Partials 652 652
🚀 New features to boost your workflow:
|
Summary
unusedExportgithub-light analyzer that flags net-new direct exports with no non-declaration references.total_count: 0for brand-new PR exports is treated as dead-on-arrival).parseAddedExports; bounded symbol/search/file-fetch caps; fail-safe on missing token, fetch/search errors, or incomplete results.Fixes #2025
Test plan
cd review-enrichment && npm run build && npm run metadatanode --test review-enrichment/test/unused-export.test.ts review-enrichment/test/analyzer-registry.test.tsMade with Cursor