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 4e9213f commit a811d66Copy full SHA for a811d66
.travis.yml
@@ -15,6 +15,7 @@ go:
15
before_install:
16
# install goreturns for linting
17
- go get -u github.com/sqs/goreturns
18
+ - go get -u golang.org/x/lint/golint
19
20
script:
21
- make lint
lint.sh
@@ -2,6 +2,9 @@
2
3
# Use Goreturns as a linter to pick up spacing formatting. Return exit code 1 if there are any errors
4
# Runs gofmt + goimports
5
-
+# go returns
6
OUTPUT="$(goreturns -d -e cmd/ pkg/)"
7
test -z "$OUTPUT" || ((>&2 echo -e "$OUTPUT" "\ntry running 'make fmt'") && exit 1)
8
+
9
+# golint
10
+golint -set_exit_status ./...
0 commit comments