Skip to content

Commit

Permalink
Run go-makefile-maker
Browse files Browse the repository at this point in the history
  • Loading branch information
sapcc-bot committed Oct 4, 2023
1 parent 68f841e commit 1b1cf51
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +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.
# 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:
Expand Down Expand Up @@ -71,7 +73,9 @@ 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
Expand Down

0 comments on commit 1b1cf51

Please sign in to comment.