We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51619f0 commit 8ac3e02Copy full SHA for 8ac3e02
.travis.yml
@@ -10,6 +10,6 @@ script:
10
- ./scripts/licensecheck.sh
11
- ./scripts/codegeneration.sh
12
- go build ./...
13
- - golint -set_exit_status ./...
+ - ./scripts/golint.sh
14
- go vet ./...
15
- go test -v ./...
scripts/golint.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+
3
+# Verify that all files are correctly golint'd, with the exception of
4
+# generated code.
5
+EXIT=0
6
+GOLINT=$(golint ./... | grep -v ".gen.go")
7
8
+if [[ ! -z $GOLINT ]]; then
9
+ echo "$GOLINT"
+ EXIT=1
+fi
+exit $EXIT
0 commit comments