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