File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ vendor-update:
35
35
@echo
36
36
37
37
verify : check-reqs
38
+ @./scripts/lint.sh
38
39
@GO15VENDOREXPERIMENT=1 gometalinter -D gotype -E gofmt --errors --deadline=5m -j 4 $$(GO15VENDOREXPERIMENT=1 glide nv )
39
40
40
41
test :
Original file line number Diff line number Diff line change
1
+ # /bin/bash
2
+
3
+ # NOTE: This script needs be run from the root of the GD2 repository
4
+
5
+ # Find all Go source files in the repository, that are not vendored or generated
6
+ # and then run golint on them
7
+
8
+ RETVAL=0
9
+
10
+ for file in $( find . -path ./vendor -prune -o -type f -name ' *.go' -not -name ' *.pb.go' -print) ; do
11
+ golint -set_exit_status $file
12
+ if [ $? -eq 1 -a $RETVAL -eq 0 ]; then
13
+ RETVAL=1
14
+ fi
15
+ done
16
+ exit $RETVAL
You can’t perform that action at this time.
0 commit comments