From b1c96920b2f823f1fcbf7a86262daa1fe3855067 Mon Sep 17 00:00:00 2001 From: roli <> Date: Tue, 18 Feb 2020 14:29:40 +0100 Subject: [PATCH] Proper redirections of the subprocess channels with real-time output --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 4e7aecc..50bb78c 100755 --- a/plugin.go +++ b/plugin.go @@ -53,7 +53,7 @@ func (p Plugin) Exec() error { cmd := exec.Command("sonar-scanner", args...) // fmt.Printf("==> Executing: %s\n", strings.Join(cmd.Args, " ")) cmd.Stdout = os.Stdout - cmd.Stderr = os.Stdout + cmd.Stderr = os.Stderr fmt.Printf("==> Code Analysis Result:\n") err := cmd.Run() if err != nil {