Skip to content

Commit 4548f60

Browse files
committed
build: enforce go fix check in test
1 parent 202ff7c commit 4548f60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ clean:
1616
.PHONY: test
1717
test: lint_scripts
1818
if [ -n "$$(gofumpt -l $(GO_FILES))" ]; then echo "Code is not properly formatted"; exit 1; fi
19+
if [ -n "$$(go fix -diff ./...)" ]; then echo "Code does not use latest idioms of Go"; exit 1; fi
1920
if [ -n "$$(goimports -l -local $(GO_MODULE) $(GO_FILES))" ]; then echo "Imports are not properly formatted"; exit 1; fi
2021
go vet ./...
2122
misspell -error $(GO_FILES)

0 commit comments

Comments
 (0)