contextcheck
contextcheck copied to clipboard
Flagging non-buggy and legal code
Hi,
I don't understand why this code should be flagged. Any explanation or realistic reason would be appreciated for going deep to raise the flag.
Thanks
// github.com/go-chi/chi/v5
// parameter is set as normal using `"/{id}"`
func find(w http.ResponseWriter, r *http.Request) {
id := chi.URLParam(r, "id")
}
Function `URLParam->URLParam` should pass the context parameter (contextcheck)
id := chi.URLParam(r, "id")
Using:
- golangci-lint has version 1.49.0