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: |
|
- checkfmt: |
|
||||||
cd aerc
|
cd aerc
|
||||||
make checkfmt
|
make checkfmt
|
||||||
|
- lint: |
|
||||||
|
cd aerc
|
||||||
|
make lint
|
||||||
- build: |
|
- build: |
|
||||||
cd aerc
|
cd aerc
|
||||||
make
|
make
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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 ./...
|
||||||
|
|
Loading…
Reference in a new issue