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