diff options
| author | WillardHu <wei.hu@daocloud.io> | 2023-09-07 14:27:00 +0800 |
|---|---|---|
| committer | WillardHu <wei.hu@daocloud.io> | 2023-09-08 09:51:50 +0800 |
| commit | 81550c5e6abe7a3bc3eaee8904d48700ffc9ec24 (patch) | |
| tree | d60fff5680ed55057e3a1dd992de055989d6267a /hack | |
| parent | Merge pull request #4992 from khannakshat7/fix-config-log-level-edgemark (diff) | |
| download | kubeedge-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-x | hack/lib/lint.sh | 6 |
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 } |
