mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-01 19:28:09 +08:00
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.
This commit is contained in:
parent
10a6ebb3fd
commit
2e6af43a06
@ -29,7 +29,6 @@ linters:
|
|||||||
fast: false
|
fast: false
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go: "1.21"
|
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- node_modules
|
- node_modules
|
||||||
@ -75,7 +74,6 @@ linters-settings:
|
|||||||
- name: modifies-value-receiver
|
- name: modifies-value-receiver
|
||||||
gofumpt:
|
gofumpt:
|
||||||
extra-rules: true
|
extra-rules: true
|
||||||
lang-version: "1.21"
|
|
||||||
depguard:
|
depguard:
|
||||||
rules:
|
rules:
|
||||||
main:
|
main:
|
||||||
|
Loading…
Reference in New Issue
Block a user