From 09ac91b9b2a05f02a0882c420e8ba72d55bbce41 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 26 Apr 2018 20:55:46 +0200 Subject: [PATCH] Add cyclomatic complexity test to Travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b7ee8feb..a1bcdcb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,5 +45,5 @@ script: # - go test -v -race ./... # Run all the tests with the race detector enabled - go vet ./... # go vet is the official Go static analyzer - megacheck ./... # "go vet on steroids" + linter -# - gocyclo -over 19 $GO_FILES # forbid code with huge functions + - gocyclo -over 19 $GO_FILES # forbid code with huge functions - golint -set_exit_status $(go list ./...) # one last linter \ No newline at end of file