diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12e9678 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.make.setup diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cba4e80 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +args= +path=./... + +GOPATH=$(shell go env GOPATH) + +test: setup + $(GOPATH)/bin/richgo test $(path) $(args) + +lint: setup + @$(GOPATH)/bin/golint -set_exit_status -min_confidence 0.9 $(path) $(args) + @go vet $(path) $(args) + @echo "Golint & Go Vet found no problems on your code!" + +setup: .make.setup +.make.setup: + go get github.com/kyoh86/richgo + go get golang.org/x/lint + touch .make.setup