(findings: Iterable[Finding])
| 395 | |
| 396 | |
| 397 | def _print_report(findings: Iterable[Finding]) -> None: |
| 398 | findings = list(findings) |
| 399 | if not findings: |
| 400 | print("Quality gate passed: no failures found.") |
| 401 | return |
| 402 | print(f"Quality gate failed: {len(findings)} failure(s) found.") |
| 403 | for finding in findings: |
| 404 | print(f" - {finding.format()}") |
| 405 | |
| 406 | |
| 407 | def build_parser() -> argparse.ArgumentParser: |
no test coverage detected