diff options
author | techknowlogick <techknowlogick@gitea.io> | 2022-03-16 00:08:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 00:08:31 -0400 |
commit | ed1d95c55dfa91d1c9a486bfb8e00375d4038e29 (patch) | |
tree | 5c4e1cc6deff4ddbbb7fc9431ab8c0d94efe69fa /.golangci.yml | |
parent | fe9626af296f7c7893af8cff88bc4195724bea07 (diff) | |
download | gitea-ed1d95c55dfa91d1c9a486bfb8e00375d4038e29.tar.gz gitea-ed1d95c55dfa91d1c9a486bfb8e00375d4038e29.zip |
use go1.18 to build gitea (#19099)
* use go1.18 to build gitea& update min go version to 1.17
* bump in a few more places
* add a few simple tests for isipprivate
* update go.mod
* update URL to https://go.dev/dl/
* golangci-lint
* attempt golangci-lint workaround
* change version
* bump fumpt version
* skip strings.title test
* go mod tidy
* update tests as some aren't private??
* update tests
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml index f06c9cc480..143359bcf0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,7 +13,7 @@ linters: #- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time. - gofmt - misspell - - gocritic + #- gocritic # TODO: disabled until fixed with go 1.18 - bidichk - ineffassign - revive @@ -64,7 +64,7 @@ linters-settings: - name: modifies-value-receiver gofumpt: extra-rules: true - lang-version: 1.17 + lang-version: 1.18 issues: exclude-rules: @@ -152,3 +152,5 @@ issues: - path: models/user/openid.go linters: - golint + - linters: staticcheck + text: "strings.Title is deprecated: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead." |