Skip to content

Commit

Permalink
CI: Disable gofmt with go tip
Browse files Browse the repository at this point in the history
Don't run `gofmt` when testing with golang tip.

Fixes kata-containers#42.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Feb 2, 2018
1 parent 6acbb25 commit 4c0ae0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/static-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ check_go()
# Developers may set KATA_DEV_MODE to any value for the same behaviour.
[ "$CI" = true ] || [ -n "$KATA_DEV_MODE" ] && linter_args+=" --disable-all"

[ "$TRAVIS_GO_VERSION" != "tip" ] && linter_args+=" --enable=gofmt"

linter_args+=" --enable=misspell"
linter_args+=" --enable=vet"
linter_args+=" --enable=ineffassign"
linter_args+=" --enable=gofmt"
linter_args+=" --enable=gocyclo"
linter_args+=" --cyclo-over=15"
linter_args+=" --enable=golint"
Expand Down

0 comments on commit 4c0ae0d

Please sign in to comment.