1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00
Files
cli/scripts/validate

17 lines
435 B
Plaintext
Raw Normal View History

2016-05-26 20:00:15 -07:00
#!/bin/bash
set -e
cd $(dirname $0)/..
echo Running: go fmt
test -z "$(go fmt ./... | tee /dev/stderr)"
2016-05-26 20:00:15 -07:00
echo Running: go vet
test -z "$(go vet ./... 2>&1 | tee /dev/stderr)"
2018-01-31 15:21:11 -07:00
2016-05-26 20:00:15 -07:00
echo Running: golint
test -z "$(go list ./... | grep -v /vendor/ | xargs -L1 golint | grep -v 'or be unexported' | tee /dev/stderr)"
2018-01-31 15:21:11 -07:00
echo Running: goimports
test -z "$(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*") | tee /dev/stderr)"