From 5cf609014982b00178470c513513c70c20a072bd Mon Sep 17 00:00:00 2001 From: Jacob Date: Sun, 14 Apr 2024 17:25:53 +0200 Subject: [PATCH] Make staticcheck be more verbose --- rendezvous/rendezvousservertest/rendezvousservertest.go | 2 +- staticcheck.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 staticcheck.conf diff --git a/rendezvous/rendezvousservertest/rendezvousservertest.go b/rendezvous/rendezvousservertest/rendezvousservertest.go index bb74680..8a82452 100644 --- a/rendezvous/rendezvousservertest/rendezvousservertest.go +++ b/rendezvous/rendezvousservertest/rendezvousservertest.go @@ -212,7 +212,7 @@ func (ts *TestServer) handleWS(w http.ResponseWriter, r *http.Request) { sendMsg(ack) } - errMsg := func(id string, orig interface{}, reason error) { + errMsg := func(_ string, orig interface{}, reason error) { errPacket := &msgs.Error{ Error: reason.Error(), Orig: orig, diff --git a/staticcheck.conf b/staticcheck.conf new file mode 100644 index 0000000..2a337d0 --- /dev/null +++ b/staticcheck.conf @@ -0,0 +1 @@ +checks = ["inherit", "ST1003", "ST1016", "ST1020", "ST1021", "ST1022"] \ No newline at end of file