Loading...
Loading...
Static analysis checklist for backend PRs (NestJS/TypeScript) — B1–B21 runtime bugs, logic errors, silent failures, test correctness. Use when you want to check for bugs only. For the full review workflow, use pr-review.
npx skill4agent add gadanihiman/grs-skills pr-check-staticgit diff main...HEADconst FOO = process.env.BARConfigServiceprocess.envconst FOO = process.env.BAR||as constfield?: Tfield <= 0falseundefined||.toHaveBeenCalled().toBeDefined.toBeTruthy.toBeFalsy.toBeNull()fakermockRejectedValuemockResolvedValue.not.toHaveBeenCalled()/api'finalised''failed'null{ data: [] }{ orders: [] }{ order: {} }{ shipments: [] }200 OKupdateLastSyncreturninstanceof AxiosErrorUPDATE table SET flag = false WHERE id = $1 AND flag = trueSELECT FOR UPDATEfindOne()findOne()nullif (!record) throw new NotFoundException('record not found');.mdYOUR_BEARER_TOKEN_HERE<api-token>trim().toLowerCase()@TransformLOWER(TRIM(...))[B1] path/to/file.ts:3
Severity: High
Issue: reads process.env at module-load time before ConfigModule bootstraps.
Fix: inject ConfigService, read inside method.