MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / formatIssues

Function formatIssues

lib/properties-validator.ts:662–668  ·  view source on GitHub ↗
(name: string, issues: ValidationIssue[])

Source from the content-addressed store, hash-verified

660 const lines: string[] = [];
661
662 const formatIssues = (name: string, issues: ValidationIssue[]) => {
663 if (issues.length === 0) return;
664 lines.push(`${name}:`);
665 for (const issue of issues.sort((a, b) => a.line - b.line)) {
666 lines.push(` Line ${issue.line}: ${issue.text}`);
667 }
668 };
669
670 lines.push(`## ${filename}`);
671 formatIssues('Duplicate keys', result.duplicateKeys);

Callers 1

formatValidationResultFunction · 0.85

Calls 2

pushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected