2017-04-30 13:14:54 +02:00
|
|
|
#!/bin/bash -u
|
2016-11-17 23:40:03 +01:00
|
|
|
|
2017-04-30 13:14:54 +02:00
|
|
|
OUTPUT=$(
|
|
|
|
golint ./... | \
|
|
|
|
grep -v "don't use an underscore in package name" | \
|
|
|
|
grep -v "don't use ALL_CAPS in Go names; use CamelCase" |
|
2017-06-01 22:17:08 +02:00
|
|
|
grep -v "don't use underscores in Go names"
|
2017-04-30 13:14:54 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# No output --> all good
|
2020-04-13 13:09:27 +02:00
|
|
|
if [[ -z $OUTPUT ]] ; then
|
2017-04-30 13:14:54 +02:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "golint.bash:"
|
2020-04-13 13:09:27 +02:00
|
|
|
echo "$OUTPUT"
|
2017-04-30 13:14:54 +02:00
|
|
|
exit 1
|