Skip to content

Commit 40d0afa

Browse files
reverted default_version from enigma plugin and code review changes
1 parent bdb7819 commit 40d0afa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/analyze.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func validateToolName(toolName string) error {
277277
return nil
278278
}
279279

280-
func runToolByTooName(toolName string, workDirectory string, pathsToCheck []string, autoFix bool, outputFile string, outputFormat string, tool *plugins.ToolInfo, runtime *plugins.RuntimeInfo) error {
280+
func runToolByName(toolName string, workDirectory string, pathsToCheck []string, autoFix bool, outputFile string, outputFormat string, tool *plugins.ToolInfo, runtime *plugins.RuntimeInfo) error {
281281
switch toolName {
282282
case "eslint":
283283
binaryPath := runtime.Binaries[tool.Runtime]
@@ -361,7 +361,7 @@ func runTool(workDirectory string, toolName string, pathsToCheck []string, outpu
361361
runtime = config.Config.Runtimes()[tool.Runtime]
362362
}
363363
}
364-
return runToolByTooName(toolName, workDirectory, pathsToCheck, autoFix, outputFile, outputFormat, tool, runtime)
364+
return runToolByName(toolName, workDirectory, pathsToCheck, autoFix, outputFile, outputFormat, tool, runtime)
365365
}
366366

367367
var analyzeCmd = &cobra.Command{

plugins/tools/codacy-enigma-cli/plugin.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: codacy-enigma-cli
22
description: Enigma CLI
3-
default_version: "0.0.1-main.11.91cf89e"
43
download:
54
url_template: "https://github.com/codacy/codacy-enigma-cli-releases/releases/download/{{.Version}}/codacy-enigma-cli-releases_{{.Version}}_{{.OS}}_{{.Arch}}.tar.gz"
65
binaries:

0 commit comments

Comments
 (0)