@marcel91200 / caddy Mirror · read-only / commits / 6ab9fb6f
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 08:15 UTC

ci: update the linter action version (#6575)

* ci: update the linter action version Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> * exclude rule `G115`; disable deprecated linter Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> --------- Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

Mohammed Al Sahaf committed Sep 16, 2024 at 16:50 UTC 6ab9fb6f7424026ed67ceb112d99a4c483ef468b
3 files changed +4 -3
.github/workflows/lint.yml
+1 -1
@@ -49,7 +49,7 @@ jobs:
49 - name: golangci-lint
50 uses: golangci/golangci-lint-action@v6
51 with:
52 - version: v1.60
52 + version: latest
53
54 # Windows times out frequently after about 5m50s if we don't set a longer timeout.
55 args: --timeout 10m
.golangci.yml
+3 -1
@@ -35,7 +35,6 @@ linters:
35 - errcheck
36 - errname
37 - exhaustive
38 - - exportloopref
38 - gci
39 - gofmt
40 - goimports
@@ -145,6 +144,9 @@ output:
144
145 issues:
146 exclude-rules:
147 + - text: 'G115' # TODO: Either we should fix the issues or nuke the linter if it's bad
148 + linters:
149 + - gosec
150 # we aren't calling unknown URL
151 - text: 'G107' # G107: Url provided to HTTP request as taint input
152 linters:
modules/caddyhttp/server.go
-1
@@ -817,7 +817,6 @@ func (s *Server) logRequest(
817 }
818
819 if fields == nil {
820 -
820 userID, _ := repl.GetString("http.auth.user.id")
821
822 reqBodyLength := 0