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>
This commit is contained in:
Moritz Poldrack 2022-06-22 12:25:57 +02:00 committed by Robin Jarry
parent 3f45dee237
commit e9b0186782
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,9 @@ tasks:
- checkfmt: |
cd aerc
make checkfmt
- lint: |
cd aerc
make lint
- build: |
cd aerc
make

View File

@ -64,6 +64,10 @@ checkfmt:
exit 1; \
fi
.PHONY: lint
lint:
$(GO) vet ./...
.PHONY: tests
tests:
$(GO) test $(GOFLAGS) -v ./...