We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f671db2 commit b7d9c53Copy full SHA for b7d9c53
Makefile
@@ -164,7 +164,6 @@ importfmt: get-fmt-deps
164
lint: ## Lint the code
165
./hack/gofmt.sh
166
./hack/linter.sh
167
- ./hack/generate.sh
168
169
.PHONY: all
170
all: fmt build lint test
hack/gofmt.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+files=$(find . -name "*.go" |xargs gofmt -l -s)
4
+if [[ $files ]]; then
5
+ echo "Gofmt errors in files:"
6
+ echo "$files"
7
+ diff=$(find . -name "*.go" | xargs gofmt -d -s)
8
+ echo "$diff"
9
+ exit 1
10
+fi
0 commit comments