summaryrefslogtreecommitdiff
path: root/hack/make-rules/lint.sh
diff options
context:
space:
mode:
authorxufei 00416946 <xufei40@huawei.com>2020-12-11 15:23:31 +0800
committerfisherxu <xufei40@huawei.com>2020-12-11 17:50:56 +0800
commitd9389fa6af79403c6ad5bb49f2fd73b072c626b2 (patch)
tree55fd4964935a0b316c3148c2b26374247212f3a6 /hack/make-rules/lint.sh
parentMerge pull request #2422 from daixiang0/fix-ci (diff)
downloadkubeedge-d9389fa6af79403c6ad5bb49f2fd73b072c626b2.tar.gz
install golangci-lint
Diffstat (limited to 'hack/make-rules/lint.sh')
-rwxr-xr-xhack/make-rules/lint.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/hack/make-rules/lint.sh b/hack/make-rules/lint.sh
index e575a6a46..2b2c7b9a3 100755
--- a/hack/make-rules/lint.sh
+++ b/hack/make-rules/lint.sh
@@ -22,5 +22,10 @@ set -o pipefail
KUBEEDGE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
source "${KUBEEDGE_ROOT}/hack/lib/init.sh"
+source "${KUBEEDGE_ROOT}/hack/lib/install.sh"
+
+set +e
+check_golangci-lint
+set -e
kubeedge::lint::check "$@"