#!/bin/bash
set -e

echo "running goimports..."
test -z "$(goimports -w .    | tee /dev/stderr)"

echo "running gofmt..."
test -z "$(gofmt -l -w .     | tee /dev/stderr)"

echo "running go vet..."
godep go vet ./...

#!/bin/bash
set -e

echo "running goimports..."
test -z "$(goimports -w .    | tee /dev/stderr)"

echo "running gofmt..."
test -z "$(gofmt -l -w .     | tee /dev/stderr)"

echo "running go vet..."
godep go vet $(go list ./... | grep -v /vendor/)

Exclude vendor/ from go vet
Exclude vendor/ from go vet
