(root: string)
| 154 | |
| 155 | /** Root-directory entry names, for checker detection. Never throws. */ |
| 156 | export async function detectProjectFiles(root: string): Promise<Set<string>> { |
| 157 | try { |
| 158 | return new Set(await fs.readdir(root)); |
| 159 | } catch { |
| 160 | return new Set(); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /** First checker whose detect() fires for the given root entries, or undefined. */ |
| 165 | export function pickChecker(files: Set<string>): CheckerSpec | undefined { |
no outgoing calls
no test coverage detected