提交 cf736d74 编写于 作者: K Kegan Dougal

hook: Make go vet run all tests and fix warnings

上级 e4a97d13
......@@ -4,6 +4,6 @@ set -eu
golint src/...
go fmt ./src/...
go tool vet --shadow ./src
go tool vet --all --shadow ./src
gocyclo -over 12 src/
gb test
......@@ -286,7 +286,7 @@ func testSyncServer(syncServerCmdChan chan error, userID, since, want string) {
if err != nil {
fmt.Println("=============================================================================================")
fmt.Println("sync server failed to run. If failing with 'pq: password authentication failed for user' try:")
fmt.Println(" export PGHOST=/var/run/postgresql\n")
fmt.Println(" export PGHOST=/var/run/postgresql")
fmt.Println("=============================================================================================")
panic(err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册