MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / formatGroupedWarnings

Function formatGroupedWarnings

src/utils/renderers/event-formatting.ts:498–515  ·  view source on GitHub ↗
(
  events: CompilerWarningRenderItem[],
  options?: DiagnosticFormattingOptions,
)

Source from the content-addressed store, hash-verified

496}
497
498export function formatGroupedWarnings(
499 events: CompilerWarningRenderItem[],
500 options?: DiagnosticFormattingOptions,
501): string {
502 const heading = `Warnings (${events.length}):`;
503 const lines = [heading, ''];
504
505 for (const event of events) {
506 lines.push(formatHumanCompilerWarningEvent(event, options));
507 lines.push('');
508 }
509
510 while (lines.at(-1) === '') {
511 lines.pop();
512 }
513
514 return lines.join('\n');
515}
516
517export function formatHumanCompilerErrorEvent(
518 event: CompilerErrorRenderItem,

Callers 1

flushGroupedDiagnosticsFunction · 0.90

Calls 2

pushMethod · 0.80

Tested by

no test coverage detected