MCPcopy Index your code
hub / github.com/garrytan/gstack / exitCodeFor

Function exitCodeFor

lib/redact-engine.ts:536–540  ·  view source on GitHub ↗
(result: ScanResult)

Source from the content-addressed store, hash-verified

534
535/** 0 clean, 2 MEDIUM present (no HIGH), 3 HIGH present. WARN does not gate. */
536export function exitCodeFor(result: ScanResult): 0 | 2 | 3 {
537 if (result.counts.HIGH > 0) return 3;
538 if (result.counts.MEDIUM > 0) return 2;
539 return 0;
540}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected