chore(lint): upgrade golangci-lint from v1.44.2 to v1.46.2

- Add linter `execinquery`
- Add linter `nosprintfhostport`
This commit is contained in:
Quentin McGaw
2022-05-27 00:52:25 +00:00
parent 78ccbb21cd
commit 5ffe8555ba
3 changed files with 4 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ linters:
- durationcheck - durationcheck
- errchkjson - errchkjson
- errname - errname
- execinquery
- exhaustive - exhaustive
- exportloopref - exportloopref
- forcetypeassert - forcetypeassert
@@ -88,6 +89,7 @@ linters:
- nilnil - nilnil
- noctx - noctx
- nolintlint - nolintlint
- nosprintfhostport
- prealloc - prealloc
- predeclared - predeclared
- predeclared - predeclared

View File

@@ -2,7 +2,7 @@ ARG ALPINE_VERSION=3.15
ARG GO_ALPINE_VERSION=3.15 ARG GO_ALPINE_VERSION=3.15
ARG GO_VERSION=1.17 ARG GO_VERSION=1.17
ARG XCPUTRANSLATE_VERSION=v0.6.0 ARG XCPUTRANSLATE_VERSION=v0.6.0
ARG GOLANGCI_LINT_VERSION=v1.44.2 ARG GOLANGCI_LINT_VERSION=v1.46.2
ARG BUILDPLATFORM=linux/amd64 ARG BUILDPLATFORM=linux/amd64
FROM --platform=${BUILDPLATFORM} qmcgaw/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate FROM --platform=${BUILDPLATFORM} qmcgaw/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate

View File

@@ -1,3 +1,4 @@
//go:build netlink
// +build netlink // +build netlink
package wireguard package wireguard