command: temporarily disable G602 due to securego/gosec#1005

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