mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
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:
@ -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
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user