MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / detectLanguage

Function detectLanguage

src/utils/language-detection.ts:185–188  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

183 * Detect language from file path
184 */
185export 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

Callers 2

analyzeMethod · 0.85
findSymbolReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected