(
raw_violations: list[dict[str, Any]],
)
| 198 | |
| 199 | |
| 200 | def _violations_to_results( |
| 201 | raw_violations: list[dict[str, Any]], |
| 202 | ) -> dict[str, CheckerResults]: |
| 203 | results: dict[str, CheckerResults] = {} |
| 204 | for item in raw_violations: |
| 205 | checker = str(item["checker"]) |
| 206 | path = str(item["path"]) |
| 207 | line = int(item["line"]) |
| 208 | message = str(item["message"]) |
| 209 | results.setdefault(checker, CheckerResults()).add_violation(path, line, message) |
| 210 | return results |
| 211 | |
| 212 | |
| 213 | def _canonical_results( |
no test coverage detected