diff --git a/Makefile b/Makefile index f7a1203..ae4d44f 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \ # targets or for development purposes EXTERNAL_TOOLS=\ golang.org/x/tools/cmd/cover \ + github.com/golang/lint/golint \ github.com/axw/gocov/gocov \ gopkg.in/matm/v1/gocov-html \ github.com/onsi/ginkgo/ginkgo \ @@ -238,3 +239,10 @@ ci: deploy-images: @DIMAGE="${IMAGE_ORG}/zfs-driver" ./buildscripts/push +.PHONY: golint +golint: + @echo "--> Running golint" + @echo "Consider these linter recommendations:" + @golint $(PACKAGES) + @echo "--------------------------------" + @echo "" diff --git a/changelogs/unreleased/167-vaniisgh b/changelogs/unreleased/167-vaniisgh new file mode 100644 index 0000000..3fe1f8a --- /dev/null +++ b/changelogs/unreleased/167-vaniisgh @@ -0,0 +1 @@ +add golint target to makefile