MCPcopy Create free account
hub / github.com/dfinity/orbit / exitCodeFor

Function exitCodeFor

cli/src/audit/report.ts:81–85  ·  view source on GitHub ↗
(report: AuditReport)

Source from the content-addressed store, hash-verified

79};
80
81export const exitCodeFor = (report: AuditReport): number => {
82 if (report.findings.some(f => f.severity === 'blocker')) return 2;
83 if (report.findings.some(f => f.severity === 'warning')) return 1;
84 return 0;
85};

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected