-
-
Notifications
You must be signed in to change notification settings - Fork 686
Open
Description
This simple test case is raising a G705.
package main
import (
"fmt"
"os"
)
func main() {
fmt.Fprint(os.Stdout, os.Args[1])
}The guard is skipped because the http.ResponseWriter type is not resolved.
Does it make sense to not satisfy the guards when all (or even any) guard types cannot be resolved?
When adding the type
package main
import (
"fmt"
"os"
"net/http"
)
func main() {
_ = http.ResponseWriter(nil)
fmt.Fprint(os.Stdout, os.Args[1])
}gosec does not find anything.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels