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

Function diagSignature

src/agent/verification.ts:76–78  ·  view source on GitHub ↗

* Baseline diff (the PVS-Studio "only flag NEW code" idea). Given the diagnostics * that existed BEFORE the agent touched anything (`baseline`) and the ones present * now (`current`), return only the genuinely NEW ones. Matched by file+code+message * (NOT line number, which shifts when the agent

(d: Diagnostic)

Source from the content-addressed store, hash-verified

74 * it worse" — exactly what you want from an automated gate.
75 */
76function diagSignature(d: Diagnostic): string {
77 return `${d.file}|${d.code ?? ''}|${d.message.trim().toLowerCase()}`;
78}
79export function diffDiagnostics(baseline: Diagnostic[], current: Diagnostic[]): Diagnostic[] {
80 const counts = new Map<string, number>();
81 for (const d of baseline) {

Callers 1

diffDiagnosticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected