Function
collect_scan_issues
(records: list[FileRecord], target: Literal["errors", "warnings"])
Source from the content-addressed store, hash-verified
| 1041 | |
| 1042 | |
| 1043 | def collect_scan_issues(records: list[FileRecord], target: Literal["errors", "warnings"]) -> list[str]: |
| 1044 | items: list[str] = [] |
| 1045 | for r in records: |
| 1046 | for e in getattr(r, target, []): |
| 1047 | items.append(f"{r.path}: {e}") |
| 1048 | return items |
| 1049 | |
| 1050 | |
| 1051 | def main(argv: Sequence[str] | None = None) -> int: |
Tested by
no test coverage detected