find_swallowed_exceptions
Scan Python source code to detect try/except patterns that silently swallow exceptions or substitute fake data, flagging each with line number, severity, and code excerpt.
Instructions
Scan Python source code for try/except patterns that swallow errors or substitute fabricated mock data — the silent-fake-success pattern from the r/ClaudeAI thread. Flags pass-only handlers, mock-substitution returns, silent log-and-return, and bare excepts. Each finding includes a line number + severity + code excerpt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source code to scan |