From 0726cf591feccea0e4e4730ae43c0f37a12fb06a Mon Sep 17 00:00:00 2001 From: andrew_li <6263928+xyz-li@users.noreply.github.com> Date: Tue, 19 Jul 2022 10:49:49 +0800 Subject: [PATCH] change default comment style of license header (#5069) --- .licenserc.yaml | 8 ++++++++ hack/update-licenses.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 5ab39f3a7..4b589557c 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -58,5 +58,13 @@ header: - '.gitignore' - '.gitattributes' - 'pkg/controller/application/status.go' + - '.golangci.yaml' comment: on-failure + license-location-threshold: 80 + + language: + Go: + extensions: + - ".go" + comment_style_id: SlashAsterisk diff --git a/hack/update-licenses.sh b/hack/update-licenses.sh index ea4078f12..937b0c073 100755 --- a/hack/update-licenses.sh +++ b/hack/update-licenses.sh @@ -35,7 +35,7 @@ then # Install skywalking-eyes echo 'installing skywalking-eyes ' pushd "${KUBE_ROOT}/hack/tools" >/dev/null - go install github.com/apache/skywalking-eyes/cmd/license-eye@v0.2.0 + go install github.com/apache/skywalking-eyes/cmd/license-eye@v0.4.0 popd >/dev/null fi