From ac9d6d5729c4629744984ab2cdc6592daa536c2d Mon Sep 17 00:00:00 2001 From: vaniisgh Date: Tue, 30 Jun 2020 13:26:12 +0530 Subject: [PATCH] feat(zfspv) add go lint target (#167) Signed-off-by: vaniisgh --- Makefile | 8 ++++++++ changelogs/unreleased/167-vaniisgh | 1 + 2 files changed, 9 insertions(+) create mode 100644 changelogs/unreleased/167-vaniisgh 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