Skip to content

Flagging non-buggy and legal code #10

@bentcoder

Description

@bentcoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions