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

Function normalizeSeverity

extensions/java-modernization-studio/scan.mjs:104–107  ·  view source on GitHub ↗
(sev)

Source from the content-addressed store, hash-verified

102 low: "P3", minor: "P3", info: "P3", informational: "P3", note: "P3",
103};
104function normalizeSeverity(sev) {
105 if (typeof sev !== "string") return "P3";
106 return SEVERITY_ALIASES[sev.trim().toLowerCase()] || "P3";
107}
108function normalizeFinding(f, idx) {
109 if (!f || typeof f !== "object" || Array.isArray(f)) return null;
110 let files = [];

Callers 1

normalizeFindingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected