Simplify fmt and vet targets

This commit is contained in:
WithoutPants 2019-07-28 13:54:27 +10:00 committed by StashAppDev
parent b6bea6d30d
commit 1ddbc8fa01

View file

@ -20,13 +20,12 @@ gqlgen:
# Runs gofmt -w on the project's source code, modifying any files that do not match its style. # Runs gofmt -w on the project's source code, modifying any files that do not match its style.
.PHONY: fmt .PHONY: fmt
fmt: fmt:
go list ./... | grep -v vendor | xargs go fmt go fmt ./...
# Runs go vet on the project's source code. # Runs go vet on the project's source code.
# https://stackoverflow.com/questions/40531874/how-to-make-go-linters-ignore-vendor
.PHONY: vet .PHONY: vet
vet: vet:
go list ./... | grep -v vendor | xargs go vet go vet ./...
.PHONY: lint .PHONY: lint
lint: lint: