Skip to content

Commit

Permalink
command: temporarily disable G602 due to securego/gosec#1005 (#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Aug 29, 2023
1 parent 4955da7 commit 285460d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion command.go
Expand Up @@ -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
Expand Down

0 comments on commit 285460d

Please sign in to comment.