From dccf8558dabe0adae9fcbbfd3131bcbc33a159a0 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Singh Date: Sat, 16 Jan 2021 14:59:57 +0530 Subject: [PATCH] Enable spelling and boilerplate checks in prow and local tests --- .prow.sh | 3 +++ docs/csi-dev.md | 4 ++-- hack/verify-all.sh | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.prow.sh b/.prow.sh index 66cad996e..00bd8e319 100755 --- a/.prow.sh +++ b/.prow.sh @@ -22,4 +22,7 @@ . release-tools/prow.sh +./release-tools/verify-boilerplate.sh "$(pwd)" +./release-tools/verify-spelling.sh "$(pwd)" + main diff --git a/docs/csi-dev.md b/docs/csi-dev.md index e0b25768f..387f313f6 100644 --- a/docs/csi-dev.md +++ b/docs/csi-dev.md @@ -35,7 +35,7 @@ $ cd $GOPATH/src/github.com/kubernetes-csi/csi-driver-nfs $ ./_output/nfsplugin --endpoint tcp://127.0.0.1:10000 --nodeid CSINode -v=5 & ``` -#### 0. Set environmnet variables +#### 0. Set environment variables ```console $ cap="1,mount," $ volname="test-$(date +%s)" @@ -86,7 +86,7 @@ CSINode ``` ## How to test CSI driver in a Kubernetes cluster -- Set environmnet variable +- Set environment variable ```console export REGISTRY= export IMAGE_VERSION=latest diff --git a/hack/verify-all.sh b/hack/verify-all.sh index 72b5eabf8..b3b38e7ef 100755 --- a/hack/verify-all.sh +++ b/hack/verify-all.sh @@ -22,7 +22,7 @@ ${PKG_ROOT}/hack/verify-gofmt.sh ${PKG_ROOT}/hack/verify-govet.sh ${PKG_ROOT}/hack/verify-golint.sh ${PKG_ROOT}/hack/verify-yamllint.sh -#${PKG_ROOT}/hack/verify-boilerplate.sh -#${PKG_ROOT}/hack/verify-spelling.sh +${PKG_ROOT}/hack/verify-boilerplate.sh +${PKG_ROOT}/hack/verify-spelling.sh ${PKG_ROOT}/hack/verify-helm-chart.sh ${PKG_ROOT}/hack/verify-gomod.sh