(touched: string[], spec: CheckerSpec)
| 51 | |
| 52 | /** Keep only the touched source files whose extension a checker can handle. Pure. */ |
| 53 | export function relevantTouchedFiles(touched: string[], spec: CheckerSpec): string[] { |
| 54 | const exts = new Set(spec.exts); |
| 55 | return touched.filter(f => exts.has(path.extname(f).toLowerCase())); |
| 56 | } |
| 57 | |
| 58 | /** Filter diagnostics down to the files the model touched this run. Pure. */ |
| 59 | export function filterToTouched(diags: Diagnostic[], touched: string[], cwd: string): Diagnostic[] { |
no test coverage detected