INNER CODE UNIT · TypeScript
emitSummary
x-cmd/x-cmd · mod/ajv/lib/ajv.ts:295
function emitSummary(): void {
if (STATS.total === 0) return;
const lines: string[] = [
"---",
`total: ${STATS.total}`,
"result:",
` success: ${STATS.result.success}`,
` syntax-error: ${STATS.result["syntax-error"]}`,
` schema-error: ${STATS.result["schema-error"]}`,
"format:",
` json: ${STATS.format.json}`,
` yml: ${STATS.format.yml}`,
` toml: ${STATS.format.toml}`,
"---",
];
console.error(lines.join("\n"));
}