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
Destructuring assignment missed: const { status } = spawnSync() is not analyzed — only const <id> = spawnSync() is matched. This is the worst-case scenario because .error is not bound to any variable and cannot be checked.
Weak error guard accepted: hasErrorCheck accepts any.error read (including a console.log(result.error)) as a valid check, rather than requiring an actual guard like if (result.error) throw.
Real true-positive sites exist: apply_samples.cjs:97, artifact_client.cjs, send_otlp_span.cjs:823.
Suggested Changes
In the require-spawnsync-error-check rule, add a VariableDeclarator visitor for destructured patterns (ObjectPattern) that flags the call when .error is not destructured
Tighten hasErrorCheck to require the .error read appears inside a conditional/throw, not just any read
Activity
github-actions commentedon Jul 16, 2026
This issue was automatically closed because it expired on 2026-07-16T01:18:56.788Z.