mk: merge checkfmt into lint
No need to have two separate targets. Signed-off-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
7bdfa928cb
commit
bc86392169
2 changed files with 3 additions and 9 deletions
|
@ -11,9 +11,6 @@ environment:
|
||||||
DESTDIR: ./out
|
DESTDIR: ./out
|
||||||
GOFLAGS: "-tags=notmuch"
|
GOFLAGS: "-tags=notmuch"
|
||||||
tasks:
|
tasks:
|
||||||
- checkfmt: |
|
|
||||||
cd aerc
|
|
||||||
make checkfmt
|
|
||||||
- lint: |
|
- lint: |
|
||||||
cd aerc
|
cd aerc
|
||||||
make lint
|
make lint
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -56,16 +56,13 @@ dev:
|
||||||
fmt:
|
fmt:
|
||||||
gofmt -w .
|
gofmt -w .
|
||||||
|
|
||||||
.PHONY: checkfmt
|
.PHONY: lint
|
||||||
checkfmt:
|
lint:
|
||||||
@if [ `gofmt -l . | wc -l` -ne 0 ]; then \
|
@echo "gofmt -d ."; if [ `gofmt -l . | wc -l` -ne 0 ]; then \
|
||||||
gofmt -d .; \
|
gofmt -d .; \
|
||||||
echo "ERROR: source files need reformatting with gofmt"; \
|
echo "ERROR: source files need reformatting with gofmt"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: lint
|
|
||||||
lint:
|
|
||||||
$(GO) vet ./...
|
$(GO) vet ./...
|
||||||
|
|
||||||
.PHONY: tests
|
.PHONY: tests
|
||||||
|
|
Loading…
Reference in a new issue