Skip to content

Commit e449a3e

Browse files
Merge pull request #16 from codacy/fix-wrong-logic-generic-rules
fix wrong logic with generic rules
2 parents 97cff78 + 58f763a commit e449a3e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/docgen/parsing.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@ func toCodacyLanguages(r SemgrepRule) []string {
557557
"dockerfile": "Dockerfile",
558558
"elixir": "Elixir",
559559
"go": "Go",
560-
"generic": "Go",
561560
"java": "Java",
562561
"javascript": "Javascript",
563562
"js": "Javascript",
@@ -583,7 +582,7 @@ func toCodacyLanguages(r SemgrepRule) []string {
583582

584583
codacyLanguages := lo.Map(
585584
lo.Filter(r.Languages, func(s string, _ int) bool {
586-
return s != "regex" && // internal rules?
585+
return s != "generic" && s != "regex" && // internal rules?
587586
s != "lua" && s != "ocaml" && s != "html" && s != "solidity" // not supported by Codacy
588587
}),
589588
func(s string, _ int) string {

0 commit comments

Comments
 (0)