diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-02-08 03:28:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 19:28:25 +0000 |
commit | ff2014690dc9a17b73836f9d8af5184aa0134770 (patch) | |
tree | fdd849247cf8dfb207bd334a692c12c4eef3d17a /modules | |
parent | 03c644c48c511037d293bea6b4333338a932a0fc (diff) | |
download | gitea-ff2014690dc9a17b73836f9d8af5184aa0134770.tar.gz gitea-ff2014690dc9a17b73836f9d8af5184aa0134770.zip |
upgrade golangcilint to v1.51.0 (#22764)
With the upgrade to go 1.20 golangci-lint no longer correctly works. We must therefore upgrade to the latest golangci-lint.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/log/groutinelabel.go | 2 | ||||
-rw-r--r-- | modules/setting/setting.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/groutinelabel.go b/modules/log/groutinelabel.go index 0d3739fd98..c83880f4de 100644 --- a/modules/log/groutinelabel.go +++ b/modules/log/groutinelabel.go @@ -7,7 +7,7 @@ package log import "unsafe" //go:linkname runtime_getProfLabel runtime/pprof.runtime_getProfLabel -func runtime_getProfLabel() unsafe.Pointer // nolint +func runtime_getProfLabel() unsafe.Pointer //nolint type labelMap map[string]string diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 1eefa188c2..26a55c913b 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -944,7 +944,7 @@ func loadFromConf(allowEmpty bool, extraConfig string) { if SecretKey == "" { // FIXME: https://github.com/go-gitea/gitea/issues/16832 // Until it supports rotating an existing secret key, we shouldn't move users off of the widely used default value - SecretKey = "!#@FDEWREWR&*(" // nolint:gosec + SecretKey = "!#@FDEWREWR&*(" //nolint:gosec } CookieRememberName = sec.Key("COOKIE_REMEMBER_NAME").MustString("gitea_incredible") |