From df7929d2c071b4f49810e0b73ab8eb1489eb3b1f Mon Sep 17 00:00:00 2001 From: umarcor Date: Thu, 10 Oct 2019 01:23:31 +0200 Subject: [PATCH] fix gosec G204 --- bash_completions_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bash_completions_test.go b/bash_completions_test.go index 2c182ba73..fc455d8a3 100644 --- a/bash_completions_test.go +++ b/bash_completions_test.go @@ -40,10 +40,9 @@ func checkRegex(t *testing.T, found, pattern string) { } func runShellCheck(s string) error { - excluded := []string{ + cmd := exec.Command("shellcheck", "-s", "bash", "-", "-e", "SC2034", // PREFIX appears unused. Verify it or export it. - } - cmd := exec.Command("shellcheck", "-s", "bash", "-", "-e", strings.Join(excluded, ",")) + ) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout