feat(enrichment): empty-catch / error-swallow analyzer - #3532
feat(enrichment): empty-catch / error-swallow analyzer#3532bohdansolovie wants to merge 1 commit into
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:17:53 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 #3532 +/- ##
=======================================
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:
|
JSONbored
left a comment
There was a problem hiding this comment.
Merge conflicts:
This branch has conflicts that must be resolved
Use the [web editor](https://github.com/JSONbored/gittensory/pull/3532/conflicts) or the command line to resolve conflicts before continuing.
.env.example
apps/gittensory-ui/src/lib/rees-analyzers.ts
review-enrichment/analyzer-metadata.json
review-enrichment/src/analyzers/registry.ts
review-enrichment/src/render.ts
review-enrichment/src/types.ts
review-enrichment/test/analyzer-registry.test.ts
src/review/enrichment-analyzer-names.ts
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