Compare commits
2 Commits
6f6596c13f
...
736fe4fcd6
| Author | SHA1 | Date | |
|---|---|---|---|
| 736fe4fcd6 | |||
|
|
13b6c88ba3 |
@ -50,6 +50,15 @@ Examples:
|
||||
continue
|
||||
}
|
||||
lang := langObj.Name
|
||||
if lang == "C/C++" {
|
||||
ext := strings.ToLower(filepath.Ext(filePath))
|
||||
switch ext {
|
||||
case ".cpp", ".cc", ".cxx":
|
||||
lang = "C++"
|
||||
default:
|
||||
lang = "C"
|
||||
}
|
||||
}
|
||||
if !supportedLangs[lang] {
|
||||
color.Yellow("Unsupported lang '%s' for %s (supported: Go/Python/C/C++)", lang, filePath)
|
||||
allSuccess = false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user