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:
parent
3f45dee237
commit
e9b0186782
2 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,9 @@ tasks:
|
|||
- checkfmt: |
|
||||
cd aerc
|
||||
make checkfmt
|
||||
- lint: |
|
||||
cd aerc
|
||||
make lint
|
||||
- build: |
|
||||
cd aerc
|
||||
make
|
||||
|
|
4
Makefile
4
Makefile
|
@ -64,6 +64,10 @@ checkfmt:
|
|||
exit 1; \
|
||||
fi
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
$(GO) vet ./...
|
||||
|
||||
.PHONY: tests
|
||||
tests:
|
||||
$(GO) test $(GOFLAGS) -v ./...
|
||||
|
|
Loading…
Reference in a new issue