Code maintenance: upgrade golangci-lint to 1.34.1

This commit is contained in:
Quentin McGaw
2020-12-29 17:50:12 +00:00
parent bedf613cff
commit 8428714cf5
4 changed files with 1 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ ARG GO_VERSION=1.15
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder
RUN apk --update add git
ENV CGO_ENABLED=0
ARG GOLANGCI_LINT_VERSION=v1.33.0
ARG GOLANGCI_LINT_VERSION=v1.34.1
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s ${GOLANGCI_LINT_VERSION}
WORKDIR /tmp/gobuild
COPY .golangci.yml .

View File

@@ -20,7 +20,6 @@ func PrivadoHostnameChoices() (choices []string) {
return choices
}
//nolint:gomnd
func PrivadoServers() []models.PrivadoServer {
return []models.PrivadoServer{
{Hostname: "akl-001.vpn.privado.io", IP: net.IP{23, 254, 104, 114}},

View File

@@ -10,7 +10,6 @@ import (
"github.com/qdm12/golibs/logging"
)
//nolint:lll
var regularExpressions = struct { //nolint:gochecknoglobals
unboundPrefix *regexp.Regexp
}{

View File

@@ -1,4 +1,3 @@
//nolint:dupl
package server
import (