MCPcopy
hub / github.com/github/awesome-copilot / sevCounts

Function sevCounts

extensions/java-modernization-studio/renderer.mjs:495–499  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

493 return { title: x.title, detail: x.detail, files: x.files, severity: x.severity };
494 }
495 function sevCounts(f) {
496 const c = { P0: 0, P1: 0, P2: 0, P3: 0 };
497 (f || []).forEach((x) => { if (c[x.severity] != null) c[x.severity]++; });
498 return c;
499 }
500 function sevBadgeClass(sev) {
501 return { P0: "b-red", P1: "b-amber", P2: "b-blue", P3: "b-gray" }[sev] || "b-gray";
502 }

Callers 2

overviewTabFunction · 0.85
assessmentTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected