Created
August 11, 2017 13:25
-
-
Save rkravchik/7dd3b097f7e239cc8f23e182ffca5f83 to your computer and use it in GitHub Desktop.
Golang coding style checks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install tooling and set path: | |
go get github.com/golang/lint/golint | |
go get github.com/fzipp/gocyclo | |
go get github.com/kisielk/errcheck | |
export PATH=$PATH:$GOPATH/bin | |
# Fix errors and warnings: | |
go fmt ./... && gofmt -s -w . && go vet ./... && go get ./... && go test ./... && golint ./... && gocyclo -avg -over 15 . && errcheck ./... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment