aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.golangci.toml2
-rw-r--r--Makefile3
2 files changed, 2 insertions, 3 deletions
diff --git a/.golangci.toml b/.golangci.toml
index 74cd03bb..543f142a 100644
--- a/.golangci.toml
+++ b/.golangci.toml
@@ -1,6 +1,4 @@
[run]
-# include notmuch codes
-build-tags = ["notmuch"]
# don't lint tests
tests = false
diff --git a/Makefile b/Makefile
index 1874e0ff..4fe6456c 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,8 @@ lint: linters.so
@$(GO) run mvdan.cc/gofumpt@$(gofumpt_tag) -d . | grep ^ \
&& echo The above files need to be formatted, please run make fmt && exit 1 \
|| echo all files formatted.
- $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 run
+ $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 run \
+ $$(echo $(GOFLAGS) | sed s/-tags=/--build-tags=/)
.PHONY: vulncheck
vulncheck: