From ff2f41888c5ddb22e54d1d972fa24034edcc0f37 Mon Sep 17 00:00:00 2001 From: seeflood Date: Tue, 24 May 2022 10:59:32 +0800 Subject: [PATCH] fix license script Signed-off-by: seeflood --- Makefile | 3 +-- make/ci.mk | 10 ++++++++++ pkg/wasm/abi.go | 27 ++++++++++++--------------- sdk/go-sdk/client/secret.go | 28 +++++++++++++--------------- 4 files changed, 36 insertions(+), 32 deletions(-) diff --git a/Makefile b/Makefile index d4a483484a..68fa105485 100644 --- a/Makefile +++ b/Makefile @@ -217,8 +217,7 @@ style.quickstart: # ============================================================================== .PHONY: license license: - # For more details: https://github.com/apache/skywalking-eyes#docker-image - docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix + @$(MAKE) checker.license.fix # ============================================================================== ## integrate.wasm: Run integration test with wasm. diff --git a/make/ci.mk b/make/ci.mk index d73468186e..5e523347d6 100644 --- a/make/ci.mk +++ b/make/ci.mk @@ -39,6 +39,16 @@ checker.deadlink: @echo "===========> Checking Dead Links" sh ${SCRIPT_DIR}/check-dead-link.sh +.PHONY: checker.license +checker.license: + # For more details: https://github.com/apache/skywalking-eyes#docker-image + docker run -it --rm -v $(ROOT_DIR):/github/workspace apache/skywalking-eyes header check + +.PHONY: checker.license.fix +checker.license.fix: + # For more details: https://github.com/apache/skywalking-eyes#docker-image + docker run -it --rm -v $(ROOT_DIR):/github/workspace apache/skywalking-eyes header fix + QUICKSTART_VERSION ?= default .PHONY: checker.quickstart diff --git a/pkg/wasm/abi.go b/pkg/wasm/abi.go index c3f5fb9f7d..e7c17c066d 100644 --- a/pkg/wasm/abi.go +++ b/pkg/wasm/abi.go @@ -1,18 +1,15 @@ -/* - * Copyright 2021 Layotto Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2021 Layotto Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package wasm diff --git a/sdk/go-sdk/client/secret.go b/sdk/go-sdk/client/secret.go index d37d056838..e5860d49e7 100644 --- a/sdk/go-sdk/client/secret.go +++ b/sdk/go-sdk/client/secret.go @@ -1,18 +1,16 @@ -/* - * Copyright 2021 Layotto Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2021 Layotto Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package client import (