Explorar el Código

fix: enforce formatting in `make lint` and remove stale phony targets

The lint target does not actually enforce formatting. It prints diff
but exits successfully when files are badly formatted.
Frédéric Guillot hace 3 semanas
padre
commit
246b706945
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      Makefile

+ 1 - 3
Makefile

@@ -16,12 +16,10 @@ export PGPASSWORD := postgres
 	linux-armv7 \
 	linux-armv6 \
 	linux-armv5 \
-	linux-x86 \
 	darwin-amd64 \
 	darwin-arm64 \
 	freebsd-amd64 \
 	openbsd-amd64 \
-	netbsd-amd64 \
 	build \
 	run \
 	clean \
@@ -100,7 +98,7 @@ test:
 
 lint:
 	go vet ./...
-	gofmt -d -e .
+	test -z "$$(gofmt -l .)"
 	golangci-lint run
 
 integration-test: