* 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)
| 699 | * everywhere). Built once per scan/sync/scope operation from the scan root. |
| 700 | */ |
| 701 | function loadExcludeMatcher(rootDir: string): Ignore | null { |
| 702 | const patterns = loadExcludePatterns(rootDir); |
| 703 | return patterns.length > 0 ? ignore().add(patterns) : null; |
| 704 | } |
| 705 | |
| 706 | /** |
| 707 | * Matcher for the project's `codegraph.json` `include` patterns — first-party |
no test coverage detected