We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fmt-check
1 parent 4d93d11 commit 5db9874Copy full SHA for 5db9874
Makefile
@@ -115,6 +115,11 @@ fmt: $(GOIMPORTS_BIN)
115
@$(call print, "Formatting source.")
116
gofmt -l -w -s $(GOFILES_NOVENDOR)
117
118
+#? fmt-check: Make sure source code is formatted and imports are correct
119
+fmt-check: fmt
120
+ @$(call print, "Checking fmt results.")
121
+ if test -n "$$(git status --porcelain)"; then echo "code not formatted correctly, please run `make fmt` again!"; git status; git diff; exit 1; fi
122
+
123
#? lint: Lint source
124
lint: $(LINT_BIN)
125
@$(call print, "Linting source.")
0 commit comments