MCPcopy
hub / github.com/Doorman11991/smallcode / finalize

Function finalize

src/compiled/cognition/validate.ts:157–164  ·  view source on GitHub ↗
(issues: string[], kind: string)

Source from the content-addressed store, hash-verified

155}
156
157function finalize(issues: string[], kind: string): ValidationReport {
158 if (issues.length > 0) {
159 counter("cognition.validate.failed", { mode: "schema_only", kind });
160 } else {
161 counter("cognition.validate.passed", { mode: "schema_only", kind });
162 }
163 return { ok: issues.length === 0, issues };
164}
165
166/**
167 * Best-effort syntactic + semantic validation of TypeScript code returned

Callers 1

validateSchemaOnlyFunction · 0.70

Calls 1

counterFunction · 0.90

Tested by

no test coverage detected