Skip to content

Add style check #101

Description

@zurk

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions