Find failure handling that can lose data
find_suspectsScans JavaScript and TypeScript sources statically to flag reads that turn unknown failures into empty results or only log failures, naming each suspect read and the check to prove or dismiss it.
Instructions
Reads JavaScript and TypeScript sources, without running them, for two patterns: UNKNOWN_AS_EMPTY (a failed or unexpected read becomes an empty collection, so "unknown" looks like "none") and FAILURE_ONLY_LOGGED (a read stores its data when it succeeds, but its failure is only logged). Each suspect names the read to fail and the check that proves or dismisses it. Use changedSince "main" to scan only what a branch changed. Needs TypeScript in the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Files and directories to scan, relative to the working directory. Default: all of it. | |
| changedSince | No | Git reference, such as main: scan only the files changed since it, uncommitted and untracked ones included. | |
| includeTests | No | Scan test files too. |