Skip to content

Commit 8a885ca

Browse files
fix variable name
1 parent ad422c5 commit 8a885ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmd/analyze.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ func runToolByName(toolName string, workDirectory string, pathsToCheck []string,
354354

355355
// Get the tool name with the right version e.g. ESLint9, PMD7, etc.
356356
toolRightVersion := getToolName(toolName, tool.Version)
357+
fmt.Printf(toolName)
357358

358359
// Get the repository tools to access tool settings
359360
repositoryTools, _ := codacyclient.GetRepositoryTools(initFlags)

tools/eslintRunner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import (
1111
// * Run from the root of the repo we want to analyse
1212
// * NODE_PATH="<the installed eslint path>/node_modules"
1313
// * The local installed ESLint should have the @microsoft/eslint-formatter-sarif installed
14-
func RunEslint(repositoryToAnalyseDirectory string, eslintInstallationDirectory string, nodeBinary string, pathsToCheck []string, autoFix bool, outputFile string, outputFormat string, userUsesConfigurationFile bool) error {
14+
func RunEslint(repositoryToAnalyseDirectory string, eslintInstallationDirectory string, nodeBinary string, pathsToCheck []string, autoFix bool, outputFile string, outputFormat string, UsesConfigurationFile bool) error {
1515
eslintInstallationNodeModules := filepath.Join(eslintInstallationDirectory, "node_modules")
1616
eslintJsPath := filepath.Join(eslintInstallationNodeModules, ".bin", "eslint")
1717

1818
cmd := exec.Command(nodeBinary, eslintJsPath)
1919

2020
// Add config file from tools-configs directory if it exists
21-
if !userUsesConfigurationFile {
21+
if !UsesConfigurationFile {
2222
if configFile, exists := ConfigFileExists(config.Config, "eslint.config.mjs"); exists {
2323
// For Eslint compatibility with version 8.
2424
// https://eslint.org/docs/v8.x/use/configure/configuration-files-new

0 commit comments

Comments
 (0)