(f)
| 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 | } |
no outgoing calls
no test coverage detected