Makefile: add lint-docker target
For running linter in Docker.
@@ -61,6 +61,10 @@ test: run-unit-tests
lint: build-slim build-test
golangci-lint run --enable-all --disable=godox,gochecknoglobals --max-same-issues=0 --max-issues-per-linter=0 --build-tags aws,packet,e2e,disruptive-e2e --new-from-rev=$$(git merge-base $$(cat .git/resource/base_sha 2>/dev/null || echo "master") HEAD) --modules-download-mode=$(MOD) --timeout=5m --exclude-use-default=false ./...
+.PHONY: lint-docker
+lint-docker:
+ docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.23.8 make lint
+
GOFORMAT_FILES := $(shell find . -name '*.go' | grep -v '^./vendor')
.PHONY: run-unit-tests
