Record one file the scan declined to index.
(stats: ScanSkipStats | undefined, rel: string)
| 1937 | |
| 1938 | /** Record one file the scan declined to index. */ |
| 1939 | function tallySkip(stats: ScanSkipStats | undefined, rel: string): void { |
| 1940 | if (!stats) return; |
| 1941 | const ext = path.extname(rel).toLowerCase(); |
| 1942 | if (!ext) return; |
| 1943 | stats.unsupportedByExtension.set(ext, (stats.unsupportedByExtension.get(ext) ?? 0) + 1); |
| 1944 | } |
| 1945 | |
| 1946 | export async function scanDirectoryAsync( |
| 1947 | rootDir: string, |
no test coverage detected