diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-06-22 12:25:57 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-06-24 21:08:21 +0200 |
commit | e9b01867827aac29f11b376debaf2209e8e7c9b4 (patch) | |
tree | 6df89f8dd3cdcf98aa0f7a7e71bbb2308dde6157 | |
parent | 3f45dee237a076b009e1284bc9784f5f7a07df97 (diff) | |
download | aerc-e9b01867827aac29f11b376debaf2209e8e7c9b4.tar.gz |
mk: add lint target
Run go vet only for now. More linters can be added later. Run linters in
the CI pipeline.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | .builds/alpine-edge.yml | 3 | ||||
-rw-r--r-- | Makefile | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.builds/alpine-edge.yml b/.builds/alpine-edge.yml index ad9b8af5..92322b44 100644 --- a/.builds/alpine-edge.yml +++ b/.builds/alpine-edge.yml @@ -14,6 +14,9 @@ tasks: - checkfmt: | cd aerc make checkfmt + - lint: | + cd aerc + make lint - build: | cd aerc make @@ -64,6 +64,10 @@ checkfmt: exit 1; \ fi +.PHONY: lint +lint: + $(GO) vet ./... + .PHONY: tests tests: $(GO) test $(GOFLAGS) -v ./... |