dgryski / semgrep-go

Go rules for semgrep and go-ruleguard
MIT License
460 stars 37 forks source link

chore(readeof): Improve patterns to specify data types #61

Closed yyoshiki41 closed 1 year ago

yyoshiki41 commented 1 year ago

Reduce false-positive patterns to specify data types. I want to pass below code that using bigquery.Read without error detections.

q := client.Query("select name, num from t1")
iter, err := q.Read(ctx)
if err != nil {
    return err
}
dgryski commented 1 year ago

LGTM