~rogpeppe/goose/state-of-the-world

« back to all changes in this revision

Viewing changes to .lbox.check

  • Committer: Dimiter Naydenov
  • Date: 2012-11-19 07:51:15 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: dimiter.naydenov@canonical.com-20121119075115-maanee0fnzbv8z0x
Added lbox.check

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
BADFMT=`find * -name '*.go' | xargs gofmt -l`
 
6
if [ -n "$BADFMT" ]; then
 
7
        BADFMT=`echo "$BADFMT" | sed "s/^/  /"`
 
8
        echo "gofmt is sad:\n\n$BADFMT"
 
9
        exit 1
 
10
fi
 
11
 
 
12
VERSION=`go version | awk '{print $3}'`
 
13
if [ $VERSION == 'devel' ]; then
 
14
        go tool vet \
 
15
                -methods \
 
16
                -printf \
 
17
                -rangeloops \
 
18
                -printfuncs ErrorContextf:1 \
 
19
                .
 
20
fi