mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +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
|
- 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
|
||||||
|
2
Makefile
2
Makefile
@ -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
|
||||||
|
Reference in New Issue
Block a user