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

Function _violations

ci/lint_cpp/test_public_settings_pattern_checker.py:55–65  ·  view source on GitHub ↗

Run the checker on *code* and return violations for *path*.

(
    code: str,
    path: str = _FL_PATH,
    fastled_h: str = "",
)

Source from the content-addressed store, hash-verified

53
54
55def _violations(
56 code: str,
57 path: str = _FL_PATH,
58 fastled_h: str = "",
59) -> list[tuple[int, str]]:
60 """Run the checker on *code* and return violations for *path*."""
61 checker, fc = _make(code, path, fastled_h)
62 if not checker.should_process_file(path):
63 return []
64 checker.check_file_content(fc)
65 return checker.violations.get(path, [])
66
67
68# ---------------------------------------------------------------------------

Calls 4

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

Tested by

no test coverage detected