Explicitly set go version in linter config.

This commit is contained in:
Gabe Kangas
2022-04-12 12:14:42 -07:00
committed by GitHub
parent 94682d5585
commit 01de43e6dc

View File

@@ -2,6 +2,11 @@ run:
tests: false tests: false
modules-download-mode: readonly modules-download-mode: readonly
# Define the Go version limit.
# Mainly related to generics support in go1.18.
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
go: '1.17'
issues: issues:
# The linter has a default list of ignorable errors. Turning this on will enable that list. # The linter has a default list of ignorable errors. Turning this on will enable that list.
exclude-use-default: false exclude-use-default: false