feat(enrichment): enum / literal-union exhaustiveness-drift analyzer - #3594
Conversation
Detect switches that covered every old enum or union member but omit a variant newly added by the PR. Fixes JSONbored#2028
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 18:24:29 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 #3594 +/- ##
=======================================
Coverage 93.19% 93.19%
=======================================
Files 313 313
Lines 31874 31874
Branches 11666 11666
=======================================
Hits 29705 29705
Misses 1517 1517
Partials 652 652
🚀 New features to boost your workflow:
|
Summary
exhaustivenessgithub-light analyzer that flags when a PR adds a new enum member or string-literal union variant but a previously exhaustive switch still omits it.default).Fixes #2028
Test plan
cd review-enrichment && npm run build && npm run metadatanode --test review-enrichment/test/exhaustiveness-drift.test.ts review-enrichment/test/analyzer-registry.test.tsMade with Cursor