Skip to content

Commit b00d71f

Browse files
committed
Use linter command
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 229b483 commit b00d71f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
6262
ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
6363

6464
BASEIMAGE_PROD ?= alpine
65-
BASEIMAGE_DBG ?= debian:bullseye
65+
BASEIMAGE_DBG ?= debian:bookworm
6666

6767
IMAGE := $(REGISTRY)/$(BIN)
6868
VERSION_PROD := $(VERSION)
@@ -273,7 +273,7 @@ unit-tests: $(BUILD_DIRS)
273273
./hack/test.sh $(SRC_PKGS) \
274274
"
275275

276-
ADDTL_LINTERS := goconst,gofmt,goimports,unparam
276+
ADDTL_LINTERS := gofmt,goimports,unparam
277277

278278
.PHONY: lint
279279
lint: $(BUILD_DIRS)
@@ -291,7 +291,7 @@ lint: $(BUILD_DIRS)
291291
--env HTTPS_PROXY=$(HTTPS_PROXY) \
292292
--env GOFLAGS="-mod=vendor" \
293293
$(BUILD_IMAGE) \
294-
golangci-lint run --enable $(ADDTL_LINTERS) --timeout=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default --skip-dirs=client,vendor
294+
golangci-lint run --enable $(ADDTL_LINTERS) --max-same-issues=100 --timeout=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default --skip-dirs=client,vendor
295295

296296
$(BUILD_DIRS):
297297
@mkdir -p $@

0 commit comments

Comments
 (0)