mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
Better way of checking gofmt
This commit is contained in:
parent
3395f6c775
commit
32dbbfd64c
|
@ -22,7 +22,7 @@ install:
|
|||
- go get github.com/gordonklaus/ineffassign
|
||||
|
||||
script:
|
||||
- "[ -z \"$(find -name \"*.go\" | xargs gofmt -s -l)\" ] || exit 1"
|
||||
- diff <(echo -n) <(gofmt -s -d .)
|
||||
- ineffassign .
|
||||
- go vet ./...
|
||||
- go test ./...
|
||||
|
|
Loading…
Reference in New Issue
Block a user