MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isIgnored

Method isIgnored

packages/core/src/utils/gitIgnoreParser.ts:60–71  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

58 }
59
60 isIgnored(filePath: string): boolean {
61 const resolved = path.resolve(this.projectRoot, filePath);
62 const relativePath = path.relative(this.projectRoot, resolved);
63
64 if (relativePath === '' || relativePath.startsWith('..')) {
65 return false;
66 }
67
68 // Even in windows, Ignore expects forward slashes.
69 const normalizedPath = relativePath.replace(/\\/g, '/');
70 return this.ig.ignores(normalizedPath);
71 }
72
73 getPatterns(): string[] {
74 return this.patterns;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected