(results: readonly CheckResult[])
| 257 | } |
| 258 | |
| 259 | function formatResults(results: readonly CheckResult[]): string[] { |
| 260 | const lines: string[] = []; |
| 261 | for (const result of results) { |
| 262 | lines.push(`${result.status} ${result.label.padEnd(12)} ${result.path}`); |
| 263 | if (result.message !== undefined) { |
| 264 | for (const line of result.message.split('\n')) { |
| 265 | lines.push(` ${line}`); |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | return lines; |
| 270 | } |
| 271 | |
| 272 | function formatErrorMessage(error: unknown, filePath: string): string { |
| 273 | const validationIssues = findValidationIssues(error); |
no test coverage detected