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

Function _violations

ci/lint_cpp/test_noexcept_checker.py:21–27  ·  view source on GitHub ↗
(code: str, path: str = _PLATFORM_HEADER)

Source from the content-addressed store, hash-verified

19
20
21def _violations(code: str, path: str = _PLATFORM_HEADER) -> list[tuple[int, str]]:
22 c = NoexceptFunctionChecker()
23 fc = _make(code, path)
24 if not c.should_process_file(path):
25 return []
26 c.check_file_content(fc)
27 return c.violations.get(path, [])
28
29
30# ── File filtering ──────────────────────────────────────────────────────────

Callers 15

test_void_funcMethod · 0.70
test_return_typeMethod · 0.70
test_const_methodMethod · 0.70
test_definitionMethod · 0.70
test_class_method_defMethod · 0.70
test_static_funcMethod · 0.70
test_constructorMethod · 0.70
test_multipleMethod · 0.70
test_fl_scopeMethod · 0.70
test_noexceptMethod · 0.70
test_noexcept_defMethod · 0.70
test_noexcept_constMethod · 0.70

Calls 5

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

Tested by

no test coverage detected