From 66c9c6e400ed8e53c3b36f19a883d7fb51516641 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Fri, 6 Oct 2023 15:34:29 +0000 Subject: [PATCH] Run go-makefile-maker --- .golangci.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 306adda0..94def85d 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -37,10 +37,8 @@ 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. + # 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: @@ -73,9 +71,7 @@ linters-settings: local-prefixes: github.com/sapcc/limesctl/v3 gosec: excludes: - # gosec wants us to set a short ReadHeaderTimeout to avoid Slowloris attacks, - # but doing so would expose us to Keep-Alive race conditions. - # See: https://iximiuz.com/en/posts/reverse-proxy-http-keep-alive-and-502s/ + # gosec wants us to set a short ReadHeaderTimeout to avoid Slowloris attacks, but doing so would expose us to Keep-Alive race conditions (see https://iximiuz.com/en/posts/reverse-proxy-http-keep-alive-and-502s/) - G112 # created file permissions are restricted by umask if necessary - G306