mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-21 22:49:23 +00:00
add vendoring with go dep
This commit is contained in:
39
vendor/github.com/influxdata/influxdb/Makefile
generated
vendored
Normal file
39
vendor/github.com/influxdata/influxdb/Makefile
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
PACKAGES=$(shell find . -name '*.go' -print0 | xargs -0 -n1 dirname | sort --unique)
|
||||
|
||||
default:
|
||||
|
||||
metalint: deadcode cyclo aligncheck defercheck structcheck lint errcheck
|
||||
|
||||
deadcode:
|
||||
@deadcode $(PACKAGES) 2>&1
|
||||
|
||||
cyclo:
|
||||
@gocyclo -over 10 $(PACKAGES)
|
||||
|
||||
aligncheck:
|
||||
@aligncheck $(PACKAGES)
|
||||
|
||||
defercheck:
|
||||
@defercheck $(PACKAGES)
|
||||
|
||||
|
||||
structcheck:
|
||||
@structcheck $(PACKAGES)
|
||||
|
||||
lint:
|
||||
@for pkg in $(PACKAGES); do golint $$pkg; done
|
||||
|
||||
errcheck:
|
||||
@for pkg in $(PACKAGES); do \
|
||||
errcheck -ignorepkg=bytes,fmt -ignore=":(Rollback|Close)" $$pkg \
|
||||
done
|
||||
|
||||
tools:
|
||||
go get github.com/remyoudompheng/go-misc/deadcode
|
||||
go get github.com/alecthomas/gocyclo
|
||||
go get github.com/opennota/check/...
|
||||
go get github.com/golang/lint/golint
|
||||
go get github.com/kisielk/errcheck
|
||||
go get github.com/sparrc/gdm
|
||||
|
||||
.PHONY: default,metalint,deadcode,cyclo,aligncheck,defercheck,structcheck,lint,errcheck,tools
|
||||
Reference in New Issue
Block a user