Skip to content

Commit

Permalink
fix gosec G204
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Oct 9, 2019
1 parent 4c1f211 commit c307d6e
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 c307d6e

Please sign in to comment.