File: lint

package info (click to toggle)
gron 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,740 kB
  • sloc: sh: 74; makefile: 17
file content (17 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
PROJDIR=$(cd `dirname $0`/.. && pwd)
cd ${PROJDIR}

which gometalinter > /dev/null

if [ $? -ne 0 ]; then
    echo "You don't have gometalinter. Installing it..."
    go get github.com/alecthomas/gometalinter
    gometalinter --install
fi

# dupl is disabled because it has a habbit of identifying tests as duplicated code.
# in its defence: it's right. gocyclo is disabled because I'm a terrible programmer.
# gas is disabled because it doesn't like InsecureSkipVerify set to true for HTTP
# requests - but we only do that if the user asks for it.
gometalinter --disable=gocyclo --disable=dupl --enable=goimports --disable=gas