aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-11-07 22:03:27 +0100
committerGitHub <noreply@github.com>2023-11-07 22:03:27 +0100
commit2e6af43a0654e466923a5c046a340d851b7d726c (patch)
tree1641cc9cc82c0debccec907d1507c1bd8e05382e
parent10a6ebb3fd9e44ef044ec010b235ca2bf9b456b4 (diff)
downloadgitea-2e6af43a0654e466923a5c046a340d851b7d726c.tar.gz
gitea-2e6af43a0654e466923a5c046a340d851b7d726c.zip
Remove go versions from .golangci.yml (#27953)
1. `linter.lang-version` is deprecated in favor of `run.go` 2. `run.go` defaults to the version in `go.mod` as per [docs](https://golangci-lint.run/usage/configuration/#run-configuration): ```yaml # Define the Go version limit. # Mainly related to generics support since go1.18. # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18 go: '1.19' ``` So in summary, we don't need these versions in the file as long as we keep the version in go.mod bumped.
-rw-r--r--.golangci.yml2
1 files changed, 0 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 069dc13c99..d6ce37f49a 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -29,7 +29,6 @@ linters:
fast: false
run:
- go: "1.21"
timeout: 10m
skip-dirs:
- node_modules
@@ -75,7 +74,6 @@ linters-settings:
- name: modifies-value-receiver
gofumpt:
extra-rules: true
- lang-version: "1.21"
depguard:
rules:
main: