MCPcopy Index your code
hub / github.com/github/awesome-copilot / sevRank

Function sevRank

extensions/java-modernization-studio/renderer.mjs:467–470  ·  view source on GitHub ↗
(sev)

Source from the content-addressed store, hash-verified

465 }
466
467 function sevRank(sev) {
468 const m = { P0: 1, P1: 2, P2: 3, P3: 4 };
469 return m[sev] != null ? m[sev] : null;
470 }
471 function isFindingLocked(x, ord) {
472 if (!ord || ord.activeRank == null) return false;
473 const r = sevRank(x.severity);

Callers 1

isFindingLockedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected