mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-07 02:32:33 +00:00
- remove unused `--docker` option - neater output for stages of check, build Signed-off-by: Justin Cormack <justin.cormack@docker.com>
15 lines
368 B
Bash
Executable File
15 lines
368 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd $1
|
|
|
|
>&2 echo "gofmt..."
|
|
test -z $(gofmt -s -l .| grep -v .pb. | grep -v */vendor/ | tee /dev/stderr)
|
|
|
|
>&2 echo "govet..."
|
|
test -z $(go tool vet -printf=false . 2>&1 | grep -v */vendor/ | tee /dev/stderr)
|
|
|
|
>&2 echo "golint..."
|
|
test -z $(find . -type f -name "*.go" -not -path "*/vendor/*" -not -name "*.pb.*" -exec golint {} \; | tee /dev/stderr)
|