Verify proper go formatting in circleci job
This commit is contained in:
parent
260fc43281
commit
b3cb8d0f53
|
@ -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