From e93da666ae9b0e9ed976bf9aedfbda6ddf9abb50 Mon Sep 17 00:00:00 2001 From: changzhen Date: Thu, 26 Dec 2024 17:40:32 +0800 Subject: [PATCH] fix verify license lint error Signed-off-by: changzhen --- hack/verify-license.sh | 1 - .../pkg/controller/karmada/validating_test.go | 16 ++++++++++++++++ .../customized/webhook/serviceresolvers.go | 16 ++++++++++++++++ .../customized/webhook/serviceresolvers_test.go | 16 ++++++++++++++++ pkg/util/helper/index.go | 16 ++++++++++++++++ pkg/util/helper/index_test.go | 16 ++++++++++++++++ 6 files changed, 80 insertions(+), 1 deletion(-) diff --git a/hack/verify-license.sh b/hack/verify-license.sh index 38253c5b1f31..6f74c8113b0d 100755 --- a/hack/verify-license.sh +++ b/hack/verify-license.sh @@ -40,7 +40,6 @@ missing_license_header_files="$($ADDLICENSE_BIN \ -ignore "**/*.yml" \ -ignore "**/*.json" \ -ignore ".idea/**" \ - -ignore ".git/**" .)" || true if [[ "$missing_license_header_files" ]]; then diff --git a/operator/pkg/controller/karmada/validating_test.go b/operator/pkg/controller/karmada/validating_test.go index 5dae97fba766..ab1bcbe512dd 100644 --- a/operator/pkg/controller/karmada/validating_test.go +++ b/operator/pkg/controller/karmada/validating_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Karmada 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 karmada import ( diff --git a/pkg/resourceinterpreter/customized/webhook/serviceresolvers.go b/pkg/resourceinterpreter/customized/webhook/serviceresolvers.go index 24eac8f53b96..06a32b29d551 100644 --- a/pkg/resourceinterpreter/customized/webhook/serviceresolvers.go +++ b/pkg/resourceinterpreter/customized/webhook/serviceresolvers.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Karmada 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 webhook import ( diff --git a/pkg/resourceinterpreter/customized/webhook/serviceresolvers_test.go b/pkg/resourceinterpreter/customized/webhook/serviceresolvers_test.go index 56d46124d06e..79aa3db02dcc 100644 --- a/pkg/resourceinterpreter/customized/webhook/serviceresolvers_test.go +++ b/pkg/resourceinterpreter/customized/webhook/serviceresolvers_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Karmada 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 webhook import ( diff --git a/pkg/util/helper/index.go b/pkg/util/helper/index.go index 3d3a39facb96..d2db2476f14a 100644 --- a/pkg/util/helper/index.go +++ b/pkg/util/helper/index.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Karmada 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 helper import ( diff --git a/pkg/util/helper/index_test.go b/pkg/util/helper/index_test.go index 1838e26d75a8..fd6041688b56 100644 --- a/pkg/util/helper/index_test.go +++ b/pkg/util/helper/index_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Karmada 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 helper import (