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

Function _get_cpp_lint_patterns

ci/cpp_lint_cache.py:38–57  ·  view source on GitHub ↗

Get glob include/exclude patterns for C++ lint monitoring. Loads patterns from centralized dependencies.json manifest with fallback to hardcoded defaults. Returns: Tuple of (include_patterns, exclude_patterns).

()

Source from the content-addressed store, hash-verified

36
37
38def _get_cpp_lint_patterns() -> tuple[list[str], list[str]]:
39 """
40 Get glob include/exclude patterns for C++ lint monitoring.
41
42 Loads patterns from centralized dependencies.json manifest with
43 fallback to hardcoded defaults.
44
45 Returns:
46 Tuple of (include_patterns, exclude_patterns).
47 """
48 try:
49 manifest = DependencyManifest()
50 include = manifest.get_globs("cpp_lint")
51 exclude = manifest.get_excludes("cpp_lint")
52 # Also monitor linter scripts
53 if "ci/lint_cpp/*.py" not in include:
54 include.append("ci/lint_cpp/*.py")
55 return include, exclude
56 except (FileNotFoundError, KeyError):
57 return list(_DEFAULT_CPP_LINT_GLOBS), []
58
59
60def _get_cpp_lint_cache() -> TwoLayerFingerprintCache:

Callers 1

check_cpp_files_changedFunction · 0.85

Calls 5

get_globsMethod · 0.95
get_excludesMethod · 0.95
DependencyManifestClass · 0.90
listClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected