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

Function loadExcludeMatcher

src/extraction/index.ts:701–704  ·  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

699 * everywhere). Built once per scan/sync/scope operation from the scan root.
700 */
701function 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

Callers 4

buildScopeIgnoreFunction · 0.85
getGitChangedFilesFunction · 0.85
scanDirectoryWalkFunction · 0.85

Calls 2

loadExcludePatternsFunction · 0.90
addMethod · 0.45

Tested by

no test coverage detected