MCPcopy Create free account
hub / github.com/JordanCoin/codemap / detectLangFromRuleID

Function detectLangFromRuleID

scanner/astgrep.go:333–339  ·  view source on GitHub ↗
(ruleID string)

Source from the content-addressed store, hash-verified

331}
332
333func detectLangFromRuleID(ruleID string) string {
334 parts := strings.Split(ruleID, "-")
335 if len(parts) > 0 {
336 return ruleIDToLang[parts[0]]
337 }
338 return ""
339}
340
341func extractImportPath(text string) string {
342 // Handle various import formats

Callers 1

ScanDirectoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected