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

Method matches

src/index.ts:270–277  ·  view source on GitHub ↗
(matcher: ReturnType<typeof ignore> | null, filePath: string)

Source from the content-addressed store, hash-verified

268 return cachedMatcher!;
269 };
270 const matches = (matcher: ReturnType<typeof ignore> | null, filePath: string): boolean => {
271 if (!matcher) return false;
272 const rel = path.isAbsolute(filePath)
273 ? path.relative(this.projectRoot, filePath)
274 : filePath;
275 if (!rel || escapesRoot(rel)) return false;
276 return matcher.ignores(rel.split(path.sep).join('/'));
277 };
278 const deprioritized: DeprioritizedPathMatcher = (filePath: string): boolean => {
279 try {
280 return matches(currentMatcher(), filePath);

Callers

nothing calls this directly

Calls 3

escapesRootFunction · 0.90
ignoresMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected