mirror of
https://github.com/VinGarcia/ksql.git
synced 2025-07-10 20:48:45 +00:00
Add Makefile
This commit is contained in:
parent
38ce8a9b0e
commit
4e156b8f26
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.make.setup
|
18
Makefile
Normal file
18
Makefile
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user