Skip to content

Commit 285460d

Browse files
authored
command: temporarily disable G602 due to securego/gosec#1005 (#2022)
1 parent 4955da7 commit 285460d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

command.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,9 @@ func (c *Command) findNext(next string) *Command {
752752
}
753753

754754
if len(matches) == 1 {
755-
return matches[0]
755+
// Temporarily disable gosec G602, which produces a false positive.
756+
// See https://github.com/securego/gosec/issues/1005.
757+
return matches[0] // #nosec G602
756758
}
757759

758760
return nil

0 commit comments

Comments
 (0)