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