diff --git a/.golangci.yaml b/.golangci.yaml index cc13efb..8536a26 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -17,10 +17,6 @@ linters: - common-false-positives - legacy - std-error-handling - paths: - - third_party$ - - builtin$ - - examples$ formatters: enable: - gci @@ -29,7 +25,3 @@ formatters: - goimports exclusions: generated: lax - paths: - - third_party$ - - builtin$ - - examples$ diff --git a/Makefile b/Makefile index c84d73f..5657870 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ GOCMD = go GOTEST = $(GOCMD) test +# renovate: datasource=github-tags depName=golangci/golangci-lint GOLANGCI_VERSION ?= v2.1.6 TOOLS_BIN := $(shell mkdir -p build/tools && realpath build/tools) @@ -18,14 +19,6 @@ validate: validate-lint validate-dirty ## Run validation checks. validate-lint: $(GOLANGCI) $(GOLANGCI) run -define go-install-tool -@[ -f $(1) ] || { \ -set -e ;\ -echo "Downloading $(2)" ;\ -GOBIN=$(TOOLS_BIN) go install $(2) ;\ -} -endef - validate-dirty: ifneq ($(shell git status --porcelain --untracked-files=no),) @echo worktree is dirty