aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2020-02-02 20:36:24 +0100
committerMartin Polden <mpolden@mpolden.no>2020-02-02 20:36:24 +0100
commit535354ca67fc940e904afb131a9206b84c7a1b2d (patch)
tree0054c9f81df6f0335b308a84faaf693df791d48e
parenta6204c1881a0f75ee4c84d7e1ceff8676e8d6faf (diff)
Enable staticcheck
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b9204cd..32e5447 100644
--- a/Makefile
+++ b/Makefile
@@ -14,16 +14,17 @@ golint: install-tools
golint ./...
staticcheck: install-tools
- staticcheck ./...
+# Disable SA5008 because cmd packages has a duplicate "choice" tag
+ staticcheck -checks inherit,-SA5008 ./...
install-tools:
cd tools && \
go list -tags tools -f '{{range $$i := .Imports}}{{printf "%s\n" $$i}}{{end}}' | xargs go install
-check-fmt:
+fmt:
bash -c "diff --line-format='%L' <(echo -n) <(gofmt -d -s .)"
-lint: check-fmt vet golint
+lint: fmt vet golint staticcheck
install:
go install ./...