From 60e96cce18f368c0a706959fd0503ef9f7251b92 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Tue, 13 Jun 2023 10:26:54 -0400 Subject: [PATCH] Now that's what i call linting --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef82756..987e10c 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,8 @@ GOBUILD = gox -osarch="!darwin/386" -rebuild -gocmd="$(GOCMD)" -arch="$(ARCHES)" GOCLEAN = $(GOCMD) clean GOINSTALL = $(GOCMD) install -a -tags "$(BUILD_TAGS)" -ldflags "$(LDFLAGS)" GOTEST = $(GOCMD) test -v -tags "$(BUILD_TAGS)" -GOLINT = golangci-lint run --timeout=30s --tests +DISABLED_LINTERS = varnamelen,interfacer,ifshort,exhaustivestruct,maligned,varcheck,scopelint,structcheck,deadcode,nosnakecase,golint +GOLINT = golangci-lint run --enable-all --disable "$(DISABLED_LINTERS)" --timeout=30s --tests GODEP = $(GOCMD) get -d -t GOFMT = goreturns -w GOBENCH = $(GOCMD) test -v -tags "$(BUILD_TAGS)" -cpu=$(BENCHCPUS) -run=NOTHING -bench=. -benchmem -outputdir "$(RPTDIR)"