command: temporarily disable G602 due to securego/gosec#1005 (#2022)
This commit is contained in:
parent
4955da7c11
commit
285460dca6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user