mirror of
https://github.com/rclone/rclone
synced 2025-01-11 14:26:24 +01:00
Fix go vet on go 1.7
This commit is contained in:
parent
ca0e25b1a1
commit
186aedda98
2
Makefile
2
Makefile
@ -34,7 +34,7 @@ quicktest:
|
|||||||
# Do source code quality checks
|
# Do source code quality checks
|
||||||
check: rclone
|
check: rclone
|
||||||
ifdef GO_LATEST
|
ifdef GO_LATEST
|
||||||
go tool vet -printfuncs Debugf,Infof,Logf,Errorf . 2>&1 | grep -E -v ^vendor/ ; test $$? -eq 1
|
go tool vet -printfuncs Debugf,Infof,Logf,Errorf . 2>&1 | grep -E -v vendor/ ; test $$? -eq 1
|
||||||
errcheck $(GO_FILES)
|
errcheck $(GO_FILES)
|
||||||
find . -name \*.go | grep -v /vendor/ | xargs goimports -d | grep . ; test $$? -eq 1
|
find . -name \*.go | grep -v /vendor/ | xargs goimports -d | grep . ; test $$? -eq 1
|
||||||
go list ./... | grep -v /vendor/ | xargs -i golint {} | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1
|
go list ./... | grep -v /vendor/ | xargs -i golint {} | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1
|
||||||
|
Loading…
Reference in New Issue
Block a user