From 05fe3d7b9250a010a42259615724609a4c4fd2a0 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Wed, 30 Aug 2023 12:15:24 +0000 Subject: [PATCH] Run go-makefile-maker --- .golangci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 8b49f38..61f9bc0 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -37,6 +37,10 @@ linters-settings: forbid: # ioutil package has been deprecated: https://github.com/golang/go/issues/42026 - ^ioutil\..*$ + # Using http.DefaultServeMux is discouraged because it's a global variable that some packages silently and magically add handlers to (esp. net/http/pprof). + # Applications wishing to use http.ServeMux should obtain local instances through http.NewServeMux() instead of using the global default instance. + - ^http.DefaultServeMux$ + - ^http.Handle(?:Func)?$ gocritic: enabled-checks: - boolExprSimplify