MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / filterToTouched

Function filterToTouched

src/agent/verification.ts:59–62  ·  view source on GitHub ↗
(diags: Diagnostic[], touched: string[], cwd: string)

Source from the content-addressed store, hash-verified

57
58/** Filter diagnostics down to the files the model touched this run. Pure. */
59export 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

Callers 2

verifyTouchedFilesFunction · 0.85

Calls 2

absFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected