Skip to content

Commit

Permalink
fix gosec G204
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Mar 1, 2020
1 parent a2b6a66 commit 3560ab6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bash_completions_test.go
Expand Up @@ -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

Expand Down

0 comments on commit 3560ab6

Please sign in to comment.