(spec: CheckerSpec, run: CheckerRun)
| 147 | |
| 148 | /** Pick the captured stream a checker's diagnostics live on. */ |
| 149 | export function checkerText(spec: CheckerSpec, run: CheckerRun): string { |
| 150 | return spec.stream === 'stdout' ? run.stdout |
| 151 | : spec.stream === 'stderr' ? run.stderr |
| 152 | : `${run.stdout}\n${run.stderr}`; |
| 153 | } |
| 154 | |
| 155 | /** Root-directory entry names, for checker detection. Never throws. */ |
| 156 | export async function detectProjectFiles(root: string): Promise<Set<string>> { |
no outgoing calls
no test coverage detected