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: | - checkfmt: |
cd aerc cd aerc
make checkfmt make checkfmt
- lint: |
cd aerc
make lint
- build: | - build: |
cd aerc cd aerc
make make

View file

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