mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
8 lines
250 B
Bash
Executable File
8 lines
250 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
|
|
if [ $? -gt 0 ]; then
|
|
echo "Some files aren't formatted, please run 'go fmt ./pkg/...' to format your source code before committing"
|
|
exit 1
|
|
fi
|