Skip to content

Commit 74ff051

Browse files
marainodopey
authored andcommitted
Use release v1.19.1 of golangci-lint
See golangci/golangci-lint#885
1 parent 9d5b7e6 commit 74ff051

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.golangci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
linters-settings:
22
govet:
33
check-shadowing: true
4-
# settings:
5-
# printf:
6-
# funcs:
7-
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
8-
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
9-
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
10-
# - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
4+
settings:
5+
printf:
6+
funcs:
7+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
8+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
9+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
10+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
1111
golint:
1212
min-confidence: 0
1313
gocyclo:
@@ -66,6 +66,6 @@ issues:
6666
# golangci.com configuration
6767
# https://github.com/golangci/golangci/wiki/Configuration
6868
service:
69-
golangci-lint-version: 1.22.x # use the fixed version to not introduce new linters unexpectedly
69+
golangci-lint-version: 1.19.x # use the fixed version to not introduce new linters unexpectedly
7070
prepare:
7171
- echo "here I can run custom commands, but no preparation needed for this repo"

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ all: build test lint
1717
#########################################
1818

1919
bootstra%:
20-
$Q GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.22.2
20+
# Using a released version of golangci-lint to take into account custom replacements in their go.mod
21+
$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
2122

2223
.PHONY: bootstra%
2324

0 commit comments

Comments
 (0)