(filePath: string)
| 183 | * Detect language from file path |
| 184 | */ |
| 185 | export function detectLanguage(filePath: string): string { |
| 186 | const ext = path.extname(filePath).toLowerCase(); |
| 187 | return extensionToLanguage[ext] || 'plaintext'; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Check if a file is a code file |
no outgoing calls
no test coverage detected