MCPcopy Index your code
hub / github.com/coder/coder / printReport

Function printReport

site/scripts/check-compiler.mjs:264–278  ·  view source on GitHub ↗

Print a summary of compilation results and per-file diagnostics.

(failures, totalCompiled, fileCount, hadErrors)

Source from the content-addressed store, hash-verified

262
263/** Print a summary of compilation results and per-file diagnostics. */
264function printReport(failures, totalCompiled, fileCount, hadErrors) {
265 console.log(`\nTotal: ${totalCompiled} functions compiled across ${fileCount} files`);
266 console.log(`Files with diagnostics: ${failures.length}\n`);
267
268 for (const f of failures) {
269 console.log(`✗ ${shortPath(f.file)} (${f.compiled} compiled)`);
270 for (const d of f.diagnostics) {
271 console.log(` line ${d.line}: ${d.short}`);
272 }
273 }
274
275 if (failures.length === 0 && !hadErrors) {
276 console.log("✓ All files compile cleanly.");
277 }
278}
279
280// ---------------------------------------------------------------------------
281// Main

Callers 1

check-compiler.mjsFile · 0.85

Calls 1

shortPathFunction · 0.85

Tested by

no test coverage detected