PML team start to use go features of CI.
But one for a style check is missing. Now we use this code to run it:
check-style:
golint -set_exit_status ./...
[[ -z $$(gofmt -s -d .) ]] && [[ -z $$(goimports -d . ) ]] || exit 1 \
# Run `goimports -w . && gofmt -s -w .` to fix style errors
go vet
I propose to include this code to the main CI file because it is general for any Go project.
@smola WDYT?
PML team start to use go features of CI.
But one for a style check is missing. Now we use this code to run it:
I propose to include this code to the main CI file because it is general for any Go project.
@smola WDYT?