mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
12 lines
207 B
Bash
Executable File
12 lines
207 B
Bash
Executable File
#!/bin/bash
|
|
|
|
need_gofmt=$(gofmt -s -l `find . -name '*.go' | grep -v vendor | grep -v _repos`)
|
|
|
|
if [[ -n ${need_gofmt} ]]; then
|
|
echo "These files fail gofmt -s:"
|
|
echo "${need_gofmt}"
|
|
exit 1
|
|
fi
|
|
|
|
|