1
0
mirror of https://github.com/securego/gosec.git synced 2025-07-07 00:35:35 +02:00

Do not flag the unhandled errors which are explicitly ignored

fixes #270
This commit is contained in:
Cosmin Cojocar
2019-01-14 09:50:19 +01:00
committed by Cosmin Cojocar
parent 12400f9a1c
commit 14ed63d558
2 changed files with 2 additions and 14 deletions

View File

@ -184,7 +184,7 @@ func test() (int,error) {
func main() {
v, _ := test()
fmt.Println(v)
}`}, 1}, {[]string{`
}`}, 0}, {[]string{`
package main
import (
"io/ioutil"
@ -206,7 +206,7 @@ func main() {
a()
b()
c()
}`}, 3}, {[]string{`
}`}, 2}, {[]string{`
package main
import "fmt"
func test() error {