Skip to content

Commit

Permalink
Merge pull request #25 from codacy/eslint-config-creator
Browse files Browse the repository at this point in the history
fix eslint generator
  • Loading branch information
heliocodacy authored Dec 6, 2024
2 parents 1c711f2 + f8c3e56 commit 3fac90d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/eslintConfigCreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ func CreateEslintConfig(configuration ToolConfiguration) string {

for _, patternConfiguration := range configuration.PatternsConfiguration {
rule := strings.TrimPrefix(patternConfiguration.PatternId, "ESLint8_")
fmt.Println("Rule:", rule)

const tempstring = "TEMPORARYSTRING"
rule = strings.ReplaceAll(rule, "__", tempstring)
rule = strings.ReplaceAll(rule, "_", "/")
rule = strings.ReplaceAll(rule, tempstring, "_")

if strings.Contains(rule, "/") {
/*if strings.Contains(rule, "/") {
continue
}
}*/

parametersString := ""

Expand Down

0 comments on commit 3fac90d

Please sign in to comment.