Use release v1.19.1 of golangci-lint

See https://github.com/golangci/golangci-lint/issues/885
This commit is contained in:
Mariano Cano 2020-01-10 17:19:56 -08:00 committed by max furman
parent 9d5b7e65e4
commit 74ff0513b8
2 changed files with 10 additions and 9 deletions

View file

@ -1,13 +1,13 @@
linters-settings: linters-settings:
govet: govet:
check-shadowing: true check-shadowing: true
# settings: settings:
# printf: printf:
# funcs: funcs:
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
golint: golint:
min-confidence: 0 min-confidence: 0
gocyclo: gocyclo:
@ -66,6 +66,6 @@ issues:
# golangci.com configuration # golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration # https://github.com/golangci/golangci/wiki/Configuration
service: service:
golangci-lint-version: 1.22.x # use the fixed version to not introduce new linters unexpectedly golangci-lint-version: 1.19.x # use the fixed version to not introduce new linters unexpectedly
prepare: prepare:
- echo "here I can run custom commands, but no preparation needed for this repo" - echo "here I can run custom commands, but no preparation needed for this repo"

View file

@ -17,7 +17,8 @@ all: build test lint
######################################### #########################################
bootstra%: bootstra%:
$Q GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.22.2 # Using a released version of golangci-lint to take into account custom replacements in their go.mod
$Q curl -sSfL https://raw.githubusercontent.com/smallstep/cli/master/make/golangci-install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.19.1
.PHONY: bootstra% .PHONY: bootstra%