MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / loadExcludeMatcher

Function loadExcludeMatcher

src/extraction/index.ts:335–338  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

333 * everywhere). Built once per scan/sync/scope operation from the scan root.
334 */
335function loadExcludeMatcher(rootDir: string): Ignore | null {
336 const patterns = loadExcludePatterns(rootDir);
337 return patterns.length > 0 ? ignore().add(patterns) : null;
338}
339
340/**
341 * Matcher for the project's `codegraph.json` `include` patterns — first-party

Callers 4

buildScopeIgnoreFunction · 0.85
getGitChangedFilesFunction · 0.85
scanDirectoryWalkFunction · 0.85

Calls 1

loadExcludePatternsFunction · 0.90

Tested by

no test coverage detected