Record one file the scan declined to index.
(stats: ScanSkipStats | undefined, rel: string)
| 1900 | |
| 1901 | /** Record one file the scan declined to index. */ |
| 1902 | function tallySkip(stats: ScanSkipStats | undefined, rel: string): void { |
| 1903 | if (!stats) return; |
| 1904 | const ext = path.extname(rel).toLowerCase(); |
| 1905 | if (!ext) return; |
| 1906 | stats.unsupportedByExtension.set(ext, (stats.unsupportedByExtension.get(ext) ?? 0) + 1); |
| 1907 | } |
| 1908 | |
| 1909 | export async function scanDirectoryAsync( |
| 1910 | rootDir: string, |
no test coverage detected