summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorWillardHu <wei.hu@daocloud.io>2023-09-07 14:27:00 +0800
committerWillardHu <wei.hu@daocloud.io>2023-09-08 09:51:50 +0800
commit81550c5e6abe7a3bc3eaee8904d48700ffc9ec24 (patch)
treed60fff5680ed55057e3a1dd992de055989d6267a /hack
parentMerge pull request #4992 from khannakshat7/fix-config-log-level-edgemark (diff)
downloadkubeedge-81550c5e6abe7a3bc3eaee8904d48700ffc9ec24.tar.gz
Add a timeout option to the golangci-lint command
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/lib/lint.sh6
1 files changed, 3 insertions, 3 deletions
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
}