(findings: list[dict[str, Any]])
| 200 | |
| 201 | |
| 202 | def _confidence_mix(findings: list[dict[str, Any]]) -> str: |
| 203 | counts = Counter(finding["confidence"]["level"] for finding in findings) |
| 204 | return ( |
| 205 | ", ".join( |
| 206 | f"{level}: {counts[level]}" for level in ("high", "medium", "low") if counts[level] |
| 207 | ) |
| 208 | or "none" |
| 209 | ) |
| 210 | |
| 211 | |
| 212 | def _locations(finding: dict[str, Any]) -> str: |
no outgoing calls
no test coverage detected