* Matcher for the project's `codegraph.json` `exclude` patterns — paths to keep * OUT of the index even when git-tracked, which `.gitignore` cannot do (#999). * The escape hatch for a committed vendor/theme/SDK directory. Returns `null` * when nothing is excluded (the zero-config default → no ove
(rootDir: string)
| 318 | * everywhere). Built once per scan/sync/scope operation from the scan root. |
| 319 | */ |
| 320 | function loadExcludeMatcher(rootDir: string): Ignore | null { |
| 321 | const patterns = loadExcludePatterns(rootDir); |
| 322 | return patterns.length > 0 ? ignore().add(patterns) : null; |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * `git ls-files --directory` collapses a wholly-untracked/ignored directory into |
no test coverage detected