Debian Codegraph @

script/lint

raw
1 #!/bin/sh
2 PROJDIR=$(cd `dirname $0`/.. && pwd)
3 cd ${PROJDIR}
4
5 which gometalinter > /dev/null
6
7 if [ $? -ne 0 ]; then
8 echo "You don't have gometalinter. Installing it..."
9 go get github.com/alecthomas/gometalinter
10 gometalinter --install
11 fi
12
13 # dupl is disabled because it has a habbit of identifying tests as duplicated code.
14 # in its defence: it's right. gocyclo is disabled because I'm a terrible programmer.
15 # gas is disabled because it doesn't like InsecureSkipVerify set to true for HTTP
16 # requests - but we only do that if the user asks for it.
17 gometalinter --disable=gocyclo --disable=dupl --enable=goimports --disable=gas