Skip to content

Commit 0ac9c80

Browse files
UseSonarConfigFile condition fix
1 parent 6256d8f commit 0ac9c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func (p Plugin) Exec() error {
431431
args = append(args, "-Dsonar.projectBaseDir="+p.Config.Workspace)
432432
}
433433

434-
if os.IsNotExist(err) && p.Config.UseSonarConfigFile {
434+
if os.IsNotExist(err) || !p.Config.UseSonarConfigFile {
435435
// If the configuration file does not exist, use the default parameters
436436
fmt.Println("Configuration file not found. Using default parameters.")
437437
args = []string{

0 commit comments

Comments
 (0)