MCPcopy Index your code
hub / github.com/itwanger/toBeBetterJavaer / printReport

Function printReport

scripts/sync-sidebar.js:456–470  ·  view source on GitHub ↗
(report)

Source from the content-addressed store, hash-verified

454}
455
456function printReport(report) {
457 console.log(`${report.route} <= ${report.dir}`);
458 if (report.removed.length > 0) {
459 console.log(` removed: ${report.removed.join(", ")}`);
460 }
461 if (report.added.length > 0) {
462 console.log(` added: ${report.added.join(", ")}`);
463 }
464 for (const warning of report.warnings) {
465 console.log(` warning: ${warning}`);
466 }
467 if (report.removed.length === 0 && report.added.length === 0 && report.warnings.length === 0) {
468 console.log(" no changes");
469 }
470}
471
472function escapeRegExp(value) {
473 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected