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

Function _canonical_results

ci/lint_cpp/rust_bridge.py:213–229  ·  view source on GitHub ↗
(
    results: dict[str, CheckerResults],
)

Source from the content-addressed store, hash-verified

211
212
213def _canonical_results(
214 results: dict[str, CheckerResults],
215) -> set[tuple[str, str, int, str]]:
216 canonical: set[tuple[str, str, int, str]] = set()
217 for checker_name, checker_results in results.items():
218 for file_path, file_violations in checker_results.violations.items():
219 normalized_path = str(Path(file_path)).replace("\\", "/")
220 for violation in file_violations.violations:
221 canonical.add(
222 (
223 checker_name,
224 normalized_path,
225 violation.line_number,
226 violation.content,
227 )
228 )
229 return canonical
230
231
232def _print_diff_sample(label: str, values: set[tuple[str, str, int, str]]) -> None:

Callers 1

run_rust_ab_checkFunction · 0.85

Calls 3

itemsMethod · 0.80
setClass · 0.50
addMethod · 0.45

Tested by

no test coverage detected