(filePath: string)
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected