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

View File

@ -506,7 +506,7 @@ endef
.install.golangci-lint: .gopathok
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
.install.md2man: .gopathok