diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-02-02 20:36:24 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-02-02 20:36:24 +0100 |
commit | 535354ca67fc940e904afb131a9206b84c7a1b2d (patch) | |
tree | 0054c9f81df6f0335b308a84faaf693df791d48e | |
parent | a6204c1881a0f75ee4c84d7e1ceff8676e8d6faf (diff) |
Enable staticcheck
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 ./... |