(diags: Diagnostic[], touched: string[], cwd: string)
| 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[] { |
| 60 | const set = new Set(touched.map(t => abs(cwd, t))); |
| 61 | return diags.filter(d => set.has(abs(cwd, d.file))); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Baseline diff (the PVS-Studio "only flag NEW code" idea). Given the diagnostics |
no test coverage detected