1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-05-07 05:47:26 +00:00

command: temporarily disable G602 due to

This commit is contained in:
umarcor 2023-08-29 14:59:47 +02:00
parent 4955da7c11
commit 5aed6f8ee4

View file

@ -752,7 +752,9 @@ func (c *Command) findNext(next string) *Command {
}
if len(matches) == 1 {
return matches[0]
// Temporarily disable gosec G602, which produces a false positive.
// See https://github.com/securego/gosec/issues/1005.
return matches[0] // #nosec G602
}
return nil