MCPcopy Index your code
hub / github.com/code-pushup/cli / #format

Method #format

packages/utils/src/lib/logger.ts:498–507  ·  view source on GitHub ↗
(message: string, color: AnsiColors | undefined)

Source from the content-addressed store, hash-verified

496 }
497
498 #format(message: string, color: AnsiColors | undefined): string {
499 if (!this.#groupColor || this.#activeSpinner?.isSpinning) {
500 return this.#colorize(message, color);
501 }
502 return transformLines(
503 message,
504 line =>
505 `${this.#colorize('│', this.#groupColor)} ${this.#colorize(line, color)}`,
506 );
507 }
508
509 #colorize(text: string, color: AnsiColors | undefined): string {
510 if (!color) {

Callers 2

#spinnerMethod · 0.95
#logMethod · 0.95

Calls 2

#colorizeMethod · 0.95
transformLinesFunction · 0.85

Tested by

no test coverage detected