aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-12-08 09:21:37 +0100
committerGitHub <noreply@github.com>2022-12-08 16:21:37 +0800
commit0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965 (patch)
tree4af0fa56e13f9a2008a7d34b2fc776c5373868af /modules
parentcf27403e189f674d9a1e02cb71bc1ac13a5ba23d (diff)
downloadgitea-0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965.tar.gz
gitea-0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965.zip
Update go dev dependencies (#22064)
`golangci-lint` [deprecated](https://github.com/golangci/golangci-lint/issues/1841) a bunch of linters, removed them.
Diffstat (limited to 'modules')
-rw-r--r--modules/charset/escape_stream.go2
-rw-r--r--modules/log/groutinelabel.go2
-rw-r--r--modules/setting/setting.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/charset/escape_stream.go b/modules/charset/escape_stream.go
index d29e393ab4..823b635137 100644
--- a/modules/charset/escape_stream.go
+++ b/modules/charset/escape_stream.go
@@ -239,7 +239,7 @@ func (counts runeCountType) needsEscape() bool {
type runeType int
const (
- basicASCIIRuneType runeType = iota //nolint // <- This is technically deadcode but its self-documenting so it should stay
+ basicASCIIRuneType runeType = iota // <- This is technically deadcode but its self-documenting so it should stay
brokenRuneType
nonBasicASCIIRuneType
ambiguousRuneType
diff --git a/modules/log/groutinelabel.go b/modules/log/groutinelabel.go
index 829c217574..56d7af42da 100644
--- a/modules/log/groutinelabel.go
+++ b/modules/log/groutinelabel.go
@@ -6,7 +6,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 f0d7f02927..9f2f0933d4 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -941,7 +941,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")