feat(rees): add error-swallow analyzer for empty catch blocks (#2014) - #3516
feat(rees): add error-swallow analyzer for empty catch blocks (#2014)#3516RealDiligent wants to merge 1 commit into
Conversation
…red#2014) Detect JS/TS empty catches, unused bindings, and return-null swallow patterns in added patch lines. Part of JSONbored#1499. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-05 15:19:54 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 5 non-blocking
Why this is blocked
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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: review-enrichment/src/analyzers/error-swallow.ts:51 only matches JS/TS catches when the opening catch, body, and closing brace are on the same added line, so a normal added block like `catch (err) {` followed by `}` is completely missed; change the scanner to collect the added catch body across following added lines before calling `bodySwallowsError`, or narrow the analyzer docs/tests to same-line catches only.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3516 +/- ##
=======================================
Coverage 93.09% 93.09%
=======================================
Files 301 301
Lines 31450 31450
Branches 11483 11483
=======================================
Hits 29279 29279
Misses 1517 1517
Partials 654 654
🚀 New features to boost your workflow:
|
Summary
errorSwallowlocal analyzer detecting empty/unused catch blocks and return-null error swallow patterns in JS/TS and Python patches.Closes #2014
Part of #1499
Test plan
review-enrichment:npm run build && npm run metadata:checknode --test test/error-swallow.test.ts test/analyzer-registry.test.ts(10/10 pass)npm run typecheck