mirror of
https://github.com/spf13/cobra
synced 2025-05-07 22:07:23 +00:00
fix gosec G204
This commit is contained in:
parent
31f8371c47
commit
2d75916030
1 changed files with 2 additions and 3 deletions
|
@ -40,10 +40,9 @@ func checkRegex(t *testing.T, found, pattern string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func runShellCheck(s string) error {
|
func runShellCheck(s string) error {
|
||||||
excluded := []string{
|
cmd := exec.Command("shellcheck", "-s", "bash", "-", "-e",
|
||||||
"SC2034", // PREFIX appears unused. Verify it or export it.
|
"SC2034", // PREFIX appears unused. Verify it or export it.
|
||||||
}
|
)
|
||||||
cmd := exec.Command("shellcheck", "-s", "bash", "-", "-e", strings.Join(excluded, ","))
|
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue