Skip to content

Commit f162af1

Browse files
ryboeRyan Boehning
authored and
Ryan Boehning
committed
Run gocyclo during travis runs
The complexity limit is 10.
1 parent 6c571c7 commit f162af1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ before_script:
1717
- cd vendor/honnef.co/go/tools/cmd/megacheck
1818
- go install
1919
- cd -
20+
- cd vendor/github.com/fzipp/gocyclo
21+
- go install
22+
- cd -
2023

2124
script:
2225
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
23-
- test -z $(gofmt -s -l $GO_FILES)
26+
- test -z $(gofmt -s -l ${GO_FILES})
2427
- go test -v -race ./...
2528
- go vet ./...
2629
- megacheck ./...
2730
# golint ./... doesn't ignore vendor/ for some dumb reason
2831
- golint -set_exit_status $(go list ./... | grep -v /vendor/)
32+
- gocyclo -over 10 ${GO_FILES}

0 commit comments

Comments
 (0)