diff --git a/auth/store_test.go b/auth/store_test.go index c9cbc14b7..67e50f23f 100644 --- a/auth/store_test.go +++ b/auth/store_test.go @@ -120,7 +120,7 @@ func setupAuthStore(t *testing.T) (store *authStore, teardownfunc func(t *testin t.Fatal(err) } - tearDown := func(t *testing.T) { + tearDown := func(_ *testing.T) { b.Close() os.Remove(tPath) as.Close() diff --git a/embed/serve.go b/embed/serve.go index 1399a62f3..af82dbe50 100644 --- a/embed/serve.go +++ b/embed/serve.go @@ -276,7 +276,7 @@ func (sctx *serveCtx) createMux(gwmux *gw.ServeMux, handler http.Handler) *http. gwmux, wsproxy.WithRequestMutator( // Default to the POST method for streams - func(incoming *http.Request, outgoing *http.Request) *http.Request { + func(_ *http.Request, outgoing *http.Request) *http.Request { outgoing.Method = "POST" return outgoing }, diff --git a/test b/test index 6b61f4531..d85b2fe1f 100755 --- a/test +++ b/test @@ -616,6 +616,7 @@ function commit_title_pass { function fmt_pass { toggle_failpoints disable + # TODO: add "unparam" for p in shellcheck \ markdown_you \ markdown_marker \ @@ -625,7 +626,6 @@ function fmt_pass { govet_shadow \ gosimple \ unused \ - unparam \ staticcheck \ revive \ unconvert \