File: .lbox.check

package info (click to toggle)
golang-goyaml 0.0~bzr50-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 372 kB
  • ctags: 477
  • sloc: makefile: 47; sh: 16
file content (20 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

BADFMT=`find * -name '*.go' | xargs gofmt -l`
if [ -n "$BADFMT" ]; then
	BADFMT=`echo "$BADFMT" | sed "s/^/  /"`
	echo -e "gofmt is sad:\n\n$BADFMT"
	exit 1
fi

VERSION=`go version | awk '{print $3}'`
if [ $VERSION == 'devel' ]; then
	go tool vet \
		-methods \
		-printf \
		-rangeloops \
		-printfuncs 'ErrorContextf:1,notFoundf:0,badReqErrorf:0,Commitf:0,Snapshotf:0,Debugf:0' \
		.
fi