Skip to content

Commit ab3c91b

Browse files
authored
Merge pull request #56 from pjbgf/golangci
Configure Renovate to auto-bump golangci-lint
2 parents 6c0d6ae + dda753d commit ab3c91b

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

.golangci.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ linters:
1717
- common-false-positives
1818
- legacy
1919
- std-error-handling
20-
paths:
21-
- third_party$
22-
- builtin$
23-
- examples$
2420
formatters:
2521
enable:
2622
- gci
@@ -29,7 +25,3 @@ formatters:
2925
- goimports
3026
exclusions:
3127
generated: lax
32-
paths:
33-
- third_party$
34-
- builtin$
35-
- examples$

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GOCMD = go
22
GOTEST = $(GOCMD) test
33

4+
# renovate: datasource=github-tags depName=golangci/golangci-lint
45
GOLANGCI_VERSION ?= v2.1.6
56
TOOLS_BIN := $(shell mkdir -p build/tools && realpath build/tools)
67

@@ -18,14 +19,6 @@ validate: validate-lint validate-dirty ## Run validation checks.
1819
validate-lint: $(GOLANGCI)
1920
$(GOLANGCI) run
2021

21-
define go-install-tool
22-
@[ -f $(1) ] || { \
23-
set -e ;\
24-
echo "Downloading $(2)" ;\
25-
GOBIN=$(TOOLS_BIN) go install $(2) ;\
26-
}
27-
endef
28-
2922
validate-dirty:
3023
ifneq ($(shell git status --porcelain --untracked-files=no),)
3124
@echo worktree is dirty

0 commit comments

Comments
 (0)