mirror of
https://github.com/spf13/cobra
synced 2024-11-24 06:37:06 +00:00
command: temporarily disable G602 due to securego/gosec#1005 (#2022)
This commit is contained in:
parent
4955da7c11
commit
285460dca6
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue