* Format files as a flat list
(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean)
| 9256 | * Format files as a flat list |
| 9257 | */ |
| 9258 | private formatFilesFlat(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean): string { |
| 9259 | const lines: string[] = [`**Files (${files.length})**`, '']; |
| 9260 | |
| 9261 | for (const file of files.sort((a, b) => a.path.localeCompare(b.path))) { |
| 9262 | if (includeMetadata) { |
| 9263 | lines.push(`- ${file.path} (${file.language}, ${file.nodeCount} symbols)`); |
| 9264 | } else { |
| 9265 | lines.push(`- ${file.path}`); |
| 9266 | } |
| 9267 | } |
| 9268 | |
| 9269 | return lines.join('\n'); |
| 9270 | } |
| 9271 | |
| 9272 | /** |
| 9273 | * Format files grouped by language |
no test coverage detected