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