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

Function relevantTouchedFiles

src/agent/verification.ts:53–56  ·  view source on GitHub ↗
(touched: string[], spec: CheckerSpec)

Source from the content-addressed store, hash-verified

51
52/** Keep only the touched source files whose extension a checker can handle. Pure. */
53export 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. */
59export function filterToTouched(diags: Diagnostic[], touched: string[], cwd: string): Diagnostic[] {

Callers 2

verifyTouchedFilesFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected