Skip to content

Commit

Permalink
fix gosec G204
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Apr 13, 2020
1 parent e3e4799 commit beb06a1
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 beb06a1

Please sign in to comment.