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

Method deprioritized

src/index.ts:279–286  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

277 return matcher.ignores(rel.split(path.sep).join('/'));
278 };
279 const deprioritized: DeprioritizedPathMatcher = (filePath: string): boolean => {
280 try {
281 return matches(currentMatcher(), filePath);
282 } catch {
283 // Ranking must never take the search down with it.
284 return false;
285 }
286 };
287 // One `stat` for a whole loop of candidates instead of one per candidate
288 // (#2620): a search reads the config once, then asks the frozen matcher.
289 deprioritized.snapshot = () => {

Callers

nothing calls this directly

Calls 1

matchesFunction · 0.50

Tested by

no test coverage detected