* Group findings by workflow, returning a Map keyed by workflowId. * Each value includes workflow metadata and sorted findings.
| 116 | * Each value includes workflow metadata and sorted findings. |
| 117 | */ |
| 118 | interface WorkflowGroup { |
| 119 | workflowId: string; |
| 120 | workflowName: string; |
| 121 | workflowActive: boolean; |
| 122 | findings: AuditFinding[]; |
| 123 | /** Worst severity in the group (lower = more severe). */ |
| 124 | worstSeverity: number; |
| 125 | } |
| 126 | |
| 127 | function groupByWorkflow(findings: AuditFinding[]): WorkflowGroup[] { |
| 128 | const map = new Map<string, WorkflowGroup>(); |
nothing calls this directly
no outgoing calls
no test coverage detected