@@ -97,7 +97,7 @@ func semgrepRules(destinationDir string) ([]PatternWithExplanation, *ParsedSemgr
9797func getSemgrepRegistryRules () (* ParsedSemgrepRules , error ) {
9898 return getRules (
9999 "https://github.com/semgrep/semgrep-rules" ,
100- "4ccd3b9cce2321a5fe3793868e4c2d4cfa5e9c43 " ,
100+ "4e3b8820d38983199db46cd8551bf51067b7fe16 " ,
101101 isValidSemgrepRegistryRuleFile ,
102102 prefixRuleIDWithPath )
103103}
@@ -412,6 +412,8 @@ func toCodacyLevel(r SemgrepRule) Level {
412412 return Critical
413413 case "WARNING" :
414414 return Medium
415+ case "MEDIUM" :
416+ return Medium
415417 case "INFO" :
416418 return Low
417419 default :
@@ -561,6 +563,7 @@ func toCodacyLanguages(r SemgrepRule) []string {
561563 "dockerfile" : "Dockerfile" ,
562564 "elixir" : "Elixir" ,
563565 "go" : "Go" ,
566+ "generic" : "Go" ,
564567 "java" : "Java" ,
565568 "javascript" : "Javascript" ,
566569 "js" : "Javascript" ,
@@ -581,11 +584,12 @@ func toCodacyLanguages(r SemgrepRule) []string {
581584 "typescript" : "TypeScript" ,
582585 "visualforce" : "VisualForce" ,
583586 "yaml" : "YAML" ,
587+ "xml" : "XML" ,
584588 }
585589
586590 codacyLanguages := lo .Map (
587591 lo .Filter (r .Languages , func (s string , _ int ) bool {
588- return s != "generic" && s != " regex" && // internal rules?
592+ return s != "regex" && // internal rules?
589593 s != "lua" && s != "ocaml" && s != "html" && s != "solidity" // not supported by Codacy
590594 }),
591595 func (s string , _ int ) string {
0 commit comments