mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
chore: add fmt vet (#3)
This commit is contained in:
parent
4c2ebb039d
commit
ec7570c838
2 changed files with 11 additions and 2 deletions
9
Makefile
9
Makefile
|
|
@ -144,3 +144,12 @@ geth-windows-amd64:
|
||||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth
|
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth
|
||||||
@echo "Windows amd64 cross compilation done:"
|
@echo "Windows amd64 cross compilation done:"
|
||||||
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
|
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
|
||||||
|
|
||||||
|
vet:
|
||||||
|
@echo "+ $@"
|
||||||
|
@go tool vet $(shell ls -1 -d */ | grep -v -e vendor -e contracts)
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
@echo "+ $@"
|
||||||
|
@test -z "$$(gofmt -s -l . 2>&1 | grep -v ^vendor/ | tee /dev/stderr)" || \
|
||||||
|
(echo >&2 "+ please format Go code with 'gofmt -s'" && false)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue