This repository has been archived on 2023-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Documentation
api
cmd
connector
examples
scripts
manifests
check-go-version
dump-tprs
get-protoc
git-diff
git-version
gofmt
slapd.sh
test-k8s.sh
server
storage
vendor
version
web
.dockerignore
.gitignore
.travis.yml
DCO
Dockerfile
LICENSE
MAINTAINERS
Makefile
NOTICE
README.md
bill-of-materials.json
code-of-conduct.md
glide.lock
glide.yaml
glide_test.go
dex/scripts/gofmt
Eric Chiang 980400db0b Makefile: error out if go files aren't correctly formatted
Noticed in  that our gofmt make target isn't actually erroring
if someone commits misformatted code.
2017-09-14 09:44:15 -07:00

8 lines
153 B
Bash
Executable File

#!/bin/bash -e
result=$( go fmt $@ )
if [[ $result != "" ]]; then
>&2 echo "The following files are not formatted correctly: $result"
exit 1
fi