mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
errors.go: add Hash.Write() to the white list. (#648)
This commit is contained in:
parent
e72b1e5f25
commit
3c230ac0f7
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ func NewNoErrorCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) {
|
|||
whitelist.AddAll("fmt", "Print", "Printf", "Println", "Fprint", "Fprintf", "Fprintln")
|
||||
whitelist.AddAll("strings.Builder", "Write", "WriteByte", "WriteRune", "WriteString")
|
||||
whitelist.Add("io.PipeWriter", "CloseWithError")
|
||||
whitelist.Add("hash.Hash", "Write")
|
||||
|
||||
if configured, ok := conf["G104"]; ok {
|
||||
if whitelisted, ok := configured.(map[string]interface{}); ok {
|
||||
|
|
Loading…
Reference in a new issue