From 1ddbc8fa01d9c999a717d364a71f1011bc46778f Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Sun, 28 Jul 2019 13:54:27 +1000 Subject: [PATCH] Simplify fmt and vet targets --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b3c2e12e1..36fec732e 100644 --- a/Makefile +++ b/Makefile @@ -20,13 +20,12 @@ gqlgen: # Runs gofmt -w on the project's source code, modifying any files that do not match its style. .PHONY: fmt fmt: - go list ./... | grep -v vendor | xargs go fmt + go fmt ./... # Runs go vet on the project's source code. -# https://stackoverflow.com/questions/40531874/how-to-make-go-linters-ignore-vendor .PHONY: vet vet: - go list ./... | grep -v vendor | xargs go vet + go vet ./... .PHONY: lint lint: