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).
()
| 36 | |
| 37 | |
| 38 | def _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 | |
| 60 | def _get_cpp_lint_cache() -> TwoLayerFingerprintCache: |
no test coverage detected