mirror of
https://github.com/securego/gosec.git
synced 2025-07-07 00:35:35 +02:00
Make G201 ignore CallExpr with no args (#262)
This commit is contained in:
@ -309,6 +309,14 @@ func main(){
|
||||
panic(err)
|
||||
}
|
||||
defer rows.Close()
|
||||
}`}, 0}, {[]string{`
|
||||
package main
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main(){
|
||||
fmt.Sprintln()
|
||||
}`}, 0}}
|
||||
|
||||
// SampleCodeG202 - SQL query string building via string concatenation
|
||||
|
Reference in New Issue
Block a user