MCPcopy Create free account
hub / github.com/BerriAI/litellm / parse_violations

Function parse_violations

scripts/openapi_docs_gate.py:69–74  ·  view source on GitHub ↗
(out: str)

Source from the content-addressed store, hash-verified

67
68
69def parse_violations(out: str) -> tuple[Violation, ...]:
70 return tuple(
71 Violation(match.group("method"), match.group("path"), match.group("code"))
72 for line in out.splitlines()
73 if (match := _LINE.match(line)) is not None
74 )
75
76
77def _check(root: Path, checker: Path) -> tuple[Violation, ...]:

Callers 1

_checkFunction · 0.85

Calls 2

ViolationClass · 0.70
groupMethod · 0.45

Tested by

no test coverage detected