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:
committed by
Cosmin Cojocar
parent
12400f9a1c
commit
14ed63d558
@ -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 {
|
||||
|
Reference in New Issue
Block a user