Verify proper go formatting in circleci job
This commit is contained in:
parent
611ad26d1b
commit
6b820d91ae
|
@ -9,6 +9,8 @@ test:
|
||||||
pre:
|
pre:
|
||||||
# Vet go code for any potential errors
|
# Vet go code for any potential errors
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
|
# Verify that all files are properly go formatted
|
||||||
|
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
|
||||||
override:
|
override:
|
||||||
# Enforce that testutil, cmd, and main directory are fully linted
|
# Enforce that testutil, cmd, and main directory are fully linted
|
||||||
- golint .
|
- golint .
|
||||||
|
|
Loading…
Reference in New Issue