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