OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new repo
[bytom/vapor.git]
/
vendor
/
github.com
/
spf13
/
pflag
/
verify
/
golint.sh
1
#!/bin/bash
2
3
ROOT=$(dirname "${BASH_SOURCE}")/..
4
GOLINT=${GOLINT:-"golint"}
5
6
pushd "${ROOT}" > /dev/null
7
bad_files=$($GOLINT -min_confidence=0.9 ./...)
8
if [[ -n "${bad_files}" ]]; then
9
echo "!!! '$GOLINT' problems: "
10
echo "${bad_files}"
11
exit 1
12
fi
13
popd > /dev/null
14
15
# ex: ts=2 sw=2 et filetype=sh