feat(enrichment): empty-catch / error-swallow analyzer#3541
Conversation
Fixes JSONbored#2014 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 16:34:03 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 #3541 +/- ##
=======================================
Coverage ? 93.10%
=======================================
Files ? 302
Lines ? 31504
Branches ? 11504
=======================================
Hits ? 29333
Misses ? 1517
Partials ? 654
🚀 New features to boost your workflow:
|
Summary
Fixes #2014
ErrorSwallowFindingand a localerrorSwallowanalyzer that flags newly-added catch/except blocks that swallow errors: empty body, unused binding, or barereturn nullcatch {}and Pythonexcept: passsupported$in valid JS identifiers), not\bword boundariessrc/review/enrichment-analyzer-names.tsand generated.env.example/ UI metadatareview-enrichment/test/error-swallow.test.tscovering empty/return-null/unused-binding cases, log/rethrow/$-binding/nested-brace non-flags, multiline catches, cap, and public-safe brief renderingTest plan
cd review-enrichment && npm run build && npm run metadata && node --test test/error-swallow.test.ts test/analyzer-registry.test.tsvalidate-codeMade with Cursor