(
severity: str,
code: str,
message: str,
*,
integration: str | None = None,
path: str | None = None,
suggestion: str | None = None,
)
| 33 | |
| 34 | |
| 35 | def _finding( |
| 36 | severity: str, |
| 37 | code: str, |
| 38 | message: str, |
| 39 | *, |
| 40 | integration: str | None = None, |
| 41 | path: str | None = None, |
| 42 | suggestion: str | None = None, |
| 43 | ) -> dict[str, str]: |
| 44 | item = { |
| 45 | "severity": severity, |
| 46 | "code": code, |
| 47 | "message": message, |
| 48 | } |
| 49 | if integration: |
| 50 | item["integration"] = integration |
| 51 | if path: |
| 52 | item["path"] = path |
| 53 | if suggestion: |
| 54 | item["suggestion"] = suggestion |
| 55 | return item |
| 56 | |
| 57 | |
| 58 | def _status(findings: list[dict[str, str]]) -> str: |
no outgoing calls
no test coverage detected