* Format files as a flat list
(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean)
| 9219 | * Format files as a flat list |
| 9220 | */ |
| 9221 | private formatFilesFlat(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean): string { |
| 9222 | const lines: string[] = [`**Files (${files.length})**`, '']; |
| 9223 | |
| 9224 | for (const file of files.sort((a, b) => a.path.localeCompare(b.path))) { |
| 9225 | if (includeMetadata) { |
| 9226 | lines.push(`- ${file.path} (${file.language}, ${file.nodeCount} symbols)`); |
| 9227 | } else { |
| 9228 | lines.push(`- ${file.path}`); |
| 9229 | } |
| 9230 | } |
| 9231 | |
| 9232 | return lines.join('\n'); |
| 9233 | } |
| 9234 | |
| 9235 | /** |
| 9236 | * Format files grouped by language |
no test coverage detected