feat(enrichment): empty-catch / error-swallow analyzer - #3478
feat(enrichment): empty-catch / error-swallow analyzer#3478bohdansolovie wants to merge 1 commit into
Conversation
Fixes JSONbored#2014 — flags swallowed errors in added JS/TS/Python catch/except blocks. 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 09:06:34 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: src/review/enrichment-analyzer-names.ts:26 is missing `"errorSwallow"` in `REES_ANALYZER_NAMES`, while `.env.example`, `review-enrichment/src/analyzers/registry.ts`, metadata, and the UI all expose it; add it next to `"duplication"`/`"churnHotspot"` so operator `REES_ANALYZERS` and `.gittensory.yml` validation accept the analyzer: ```ts "duplication", "errorSwallow", "churnHotspot", ```). 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. |
Summary
Fixes #2014
ErrorSwallowFindingand a localerrorSwallowanalyzer for newly-added catch/except blocks that swallow errorsempty-catch,unused-binding, andreturn-nullpatterns on added JS/TS/Python source lines (tests skipped)review-enrichment/test/error-swallow.test.tsTest 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