(language: string)
| 144 | } |
| 145 | |
| 146 | function getExtension(language: string): string { |
| 147 | switch (language) { |
| 148 | case "typescript": |
| 149 | return ".ts"; |
| 150 | case "python": |
| 151 | return ".py"; |
| 152 | case "go": |
| 153 | return ".go"; |
| 154 | case "csharp": |
| 155 | return ".cs"; |
| 156 | case "java": |
| 157 | return ".java"; |
| 158 | default: |
| 159 | return ".txt"; |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Detect code fragments that can't be validated as standalone files. |
no outgoing calls
no test coverage detected
searching dependent graphs…