MCPcopy Create free account
hub / github.com/FastLED/FastLED / _violations_to_results

Function _violations_to_results

ci/lint_cpp/rust_bridge.py:200–210  ·  view source on GitHub ↗
(
    raw_violations: list[dict[str, Any]],
)

Source from the content-addressed store, hash-verified

198
199
200def _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
213def _canonical_results(

Callers 1

run_rust_linterFunction · 0.85

Calls 2

CheckerResultsClass · 0.90
add_violationMethod · 0.45

Tested by

no test coverage detected