bump golangci-lint to 1.18.0

The latest versions have regressions in --skip-dirs where some linters
will still run and error out.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2020-01-13 12:00:08 +01:00
parent 6041f707ca
commit eeb61427bb
2 changed files with 4 additions and 3 deletions

View File

@ -6,8 +6,9 @@ run:
- selinux - selinux
concurrency: 6 concurrency: 6
deadline: 5m deadline: 5m
skip-dirs-use-default: true
skip-dirs: skip-dirs:
- dependencies/* - dependencies
- contrib - contrib
- test/e2e - test/e2e
- docs - docs
@ -18,7 +19,7 @@ run:
linters: linters:
disable-all: true disable-all: true
enable: enable:
- bodyclose # - bodyclose
- deadcode - deadcode
- depguard - depguard
# dupl really overdid it; disabling # dupl really overdid it; disabling

View File

@ -506,7 +506,7 @@ endef
.install.golangci-lint: .gopathok .install.golangci-lint: .gopathok
if [ ! -x "$(GOBIN)/golangci-lint" ]; then \ if [ ! -x "$(GOBIN)/golangci-lint" ]; then \
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOBIN)/ v1.17.1; \ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOBIN)/ v1.18.0; \
fi fi
.install.md2man: .gopathok .install.md2man: .gopathok