You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Conservative: trivial/boilerplate lines are dropped and a long contiguous run is required, so incidental overlap is not flagged. Never returns code content.",
560
560
},
561
561
},
562
+
{
563
+
name: "errorSwallow",
564
+
title: "Swallowed errors",
565
+
category: "quality",
566
+
cost: "local",
567
+
defaultEnabled: true,
568
+
profiles: ["fast","balanced","deep"],
569
+
requires: ["files"],
570
+
limits: {
571
+
maxFindings: 25,
572
+
maxLineChars: 2000,
573
+
},
574
+
docs: {
575
+
summary:
576
+
"Flags newly-added catch/except blocks that swallow errors without logging or rethrowing.",
577
+
looksAt: "Added lines in changed JS/TS/Python source files, excluding tests.",
578
+
reports: "File, line, and kind: empty-catch, unused-binding, or return-null.",
579
+
network: "Pure local analyzer. No external network call.",
580
+
notes:
581
+
"Precision-first: catches that log, rethrow, or reference the binding are not flagged. Python `except: pass` is included.",
Copy file name to clipboardExpand all lines: review-enrichment/analyzer-metadata.json
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -637,6 +637,32 @@
637
637
"notes": "Conservative: trivial/boilerplate lines are dropped and a long contiguous run is required, so incidental overlap is not flagged. Never returns code content."
638
638
}
639
639
},
640
+
{
641
+
"name": "errorSwallow",
642
+
"title": "Swallowed errors",
643
+
"category": "quality",
644
+
"cost": "local",
645
+
"defaultEnabled": true,
646
+
"profiles": [
647
+
"fast",
648
+
"balanced",
649
+
"deep"
650
+
],
651
+
"requires": [
652
+
"files"
653
+
],
654
+
"limits": {
655
+
"maxFindings": 25,
656
+
"maxLineChars": 2000
657
+
},
658
+
"docs": {
659
+
"summary": "Flags newly-added catch/except blocks that swallow errors without logging or rethrowing.",
660
+
"looksAt": "Added lines in changed JS/TS/Python source files, excluding tests.",
661
+
"reports": "File, line, and kind: empty-catch, unused-binding, or return-null.",
662
+
"network": "Pure local analyzer. No external network call.",
663
+
"notes": "Precision-first: catches that log, rethrow, or reference the binding are not flagged. Python `except: pass` is included."
0 commit comments