* Format files as a flat list
(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean)
| 8797 | * Format files as a flat list |
| 8798 | */ |
| 8799 | private formatFilesFlat(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean): string { |
| 8800 | const lines: string[] = [`**Files (${files.length})**`, '']; |
| 8801 | |
| 8802 | for (const file of files.sort((a, b) => a.path.localeCompare(b.path))) { |
| 8803 | if (includeMetadata) { |
| 8804 | lines.push(`- ${file.path} (${file.language}, ${file.nodeCount} symbols)`); |
| 8805 | } else { |
| 8806 | lines.push(`- ${file.path}`); |
| 8807 | } |
| 8808 | } |
| 8809 | |
| 8810 | return lines.join('\n'); |
| 8811 | } |
| 8812 | |
| 8813 | /** |
| 8814 | * Format files grouped by language |
no test coverage detected