From d3b753a931cdc3a8c5447613aeb08acd69b4f0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=9E=97=E8=80=80?= Date: Fri, 19 Jan 2024 14:45:45 +0800 Subject: [PATCH] optimize: Copyright MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙林耀 --- Makefile | 2 +- pkg/utils/image/image.go | 16 ++++++++++++++++ pkg/utils/image/image_test.go | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index caecb88..aa0ff64 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ protos: clean-protos .PHONY: common-check_license common-check_license: @echo ">> checking license header" - @licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './vendor/*') ; do \ + @licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './pkg/transport/*' ! -path './test/*' ! -path './vendor/*') ; do \ awk 'NR<=4' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \ done); \ if [ -n "$${licRes}" ]; then \ diff --git a/pkg/utils/image/image.go b/pkg/utils/image/image.go index 14106b6..4f3c8e0 100644 --- a/pkg/utils/image/image.go +++ b/pkg/utils/image/image.go @@ -1,3 +1,19 @@ +/* + Copyright © 2022 MicroOps-cn. + + 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 image import ( diff --git a/pkg/utils/image/image_test.go b/pkg/utils/image/image_test.go index 7a55e6d..2a8084c 100644 --- a/pkg/utils/image/image_test.go +++ b/pkg/utils/image/image_test.go @@ -1,3 +1,19 @@ +/* + Copyright © 2022 MicroOps-cn. + + 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 image import (