From 81550c5e6abe7a3bc3eaee8904d48700ffc9ec24 Mon Sep 17 00:00:00 2001 From: WillardHu Date: Thu, 7 Sep 2023 14:27:00 +0800 Subject: Add a timeout option to the golangci-lint command Signed-off-by: WillardHu --- hack/lib/lint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hack') diff --git a/hack/lib/lint.sh b/hack/lib/lint.sh index 3f48646be..4cbdc05eb 100755 --- a/hack/lib/lint.sh +++ b/hack/lib/lint.sh @@ -73,9 +73,9 @@ kubeedge::lint::check() { set -o pipefail echo "check any issue by golangci-lint ..." - GOOS="linux" golangci-lint run -v + GOOS="linux" golangci-lint run -v --timeout=12m # check codes under staging dir, this will also use .golangci.yaml in the {KUBEEDGE_ROOT} dir - cd "${KUBEEDGE_ROOT}/staging/src/github.com/kubeedge/beehive" && GOOS="linux" golangci-lint run -v - cd "${KUBEEDGE_ROOT}/staging/src/github.com/kubeedge/viaduct" && GOOS="linux" golangci-lint run -v + cd "${KUBEEDGE_ROOT}/staging/src/github.com/kubeedge/beehive" && GOOS="linux" golangci-lint run -v --timeout=1m + cd "${KUBEEDGE_ROOT}/staging/src/github.com/kubeedge/viaduct" && GOOS="linux" golangci-lint run -v --timeout=1m } -- cgit v1.2.3