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

Function _violations

ci/lint_cpp/test_raw_noexcept_checker.py:25–31  ·  view source on GitHub ↗
(code: str, path: str = _FL_PATH)

Source from the content-addressed store, hash-verified

23
24
25def _violations(code: str, path: str = _FL_PATH) -> list[tuple[int, str]]:
26 c = RawNoexceptChecker()
27 file_content = _make(code, path)
28 if not c.should_process_file(path):
29 return []
30 c.check_file_content(file_content)
31 return c.violations.get(path, [])
32
33
34# ── File filtering ───────────────────────────────────────────────────────────

Calls 5

should_process_fileMethod · 0.95
check_file_contentMethod · 0.95
RawNoexceptCheckerClass · 0.90
_makeFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected