Skip to content

Commit

Permalink
fix gosec G204
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Dec 29, 2020
1 parent c9c3c56 commit df7929d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bash_completions_test.go
Original file line number Diff line number Diff line change
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 df7929d

Please sign in to comment.