contextcheck icon indicating copy to clipboard operation
contextcheck copied to clipboard

Flagging non-buggy and legal code

Open bentcoder opened this issue 1 year ago • 3 comments

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

bentcoder avatar Jan 28 '23 14:01 bentcoder