(filePath: string)
| 278 | return matcher.ignores(rel.split(path.sep).join('/')); |
| 279 | }; |
| 280 | const deprioritized: DeprioritizedPathMatcher = (filePath: string): boolean => { |
| 281 | try { |
| 282 | return matches(currentMatcher(), filePath); |
| 283 | } catch { |
| 284 | // Ranking must never take the search down with it. |
| 285 | return false; |
| 286 | } |
| 287 | }; |
| 288 | // One `stat` for a whole loop of candidates instead of one per candidate |
| 289 | // (#2620): a search reads the config once, then asks the frozen matcher. |
| 290 | deprioritized.snapshot = () => { |