mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 22:40:31 -05:00
Better way of checking gofmt
This commit is contained in:
parent
3395f6c775
commit
32dbbfd64c
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue