forked from TrueCloudLab/certificates
Use release v1.19.1 of golangci-lint
See https://github.com/golangci/golangci-lint/issues/885
This commit is contained in:
parent
9d5b7e65e4
commit
74ff0513b8
2 changed files with 10 additions and 9 deletions
|
@ -1,13 +1,13 @@
|
|||
linters-settings:
|
||||
govet:
|
||||
check-shadowing: true
|
||||
# settings:
|
||||
# printf:
|
||||
# funcs:
|
||||
# - (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).Warnf
|
||||
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
|
||||
settings:
|
||||
printf:
|
||||
funcs:
|
||||
- (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).Warnf
|
||||
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
|
||||
golint:
|
||||
min-confidence: 0
|
||||
gocyclo:
|
||||
|
@ -66,6 +66,6 @@ issues:
|
|||
# golangci.com configuration
|
||||
# https://github.com/golangci/golangci/wiki/Configuration
|
||||
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:
|
||||
- echo "here I can run custom commands, but no preparation needed for this repo"
|
||||
|
|
3
Makefile
3
Makefile
|
@ -17,7 +17,8 @@ all: build test lint
|
|||
#########################################
|
||||
|
||||
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%
|
||||
|
||||
|
|
Loading…
Reference in a new issue