feat(zfspv) add go lint target (#167)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>
This commit is contained in:
vaniisgh 2020-06-30 13:26:12 +05:30 committed by GitHub
parent d0d1664d43
commit ac9d6d5729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -25,6 +25,7 @@ VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \
# targets or for development purposes # targets or for development purposes
EXTERNAL_TOOLS=\ EXTERNAL_TOOLS=\
golang.org/x/tools/cmd/cover \ golang.org/x/tools/cmd/cover \
github.com/golang/lint/golint \
github.com/axw/gocov/gocov \ github.com/axw/gocov/gocov \
gopkg.in/matm/v1/gocov-html \ gopkg.in/matm/v1/gocov-html \
github.com/onsi/ginkgo/ginkgo \ github.com/onsi/ginkgo/ginkgo \
@ -238,3 +239,10 @@ ci:
deploy-images: deploy-images:
@DIMAGE="${IMAGE_ORG}/zfs-driver" ./buildscripts/push @DIMAGE="${IMAGE_ORG}/zfs-driver" ./buildscripts/push
.PHONY: golint
golint:
@echo "--> Running golint"
@echo "Consider these linter recommendations:"
@golint $(PACKAGES)
@echo "--------------------------------"
@echo ""

View file

@ -0,0 +1 @@
add golint target to makefile