From 8fdde3f8d635c1f69bee7c398f702673e38459a3 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Tue, 24 May 2022 15:04:44 +0800 Subject: [PATCH] style: format header to fix ci errors (#167) Signed-off-by: Jason Liu --- .github/workflows/license.yml | 2 +- pkg/koordlet/metricsadvisor/be_collector.go | 20 +++++++++---------- .../metricsadvisor/be_collector_test.go | 20 +++++++++---------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 78f7c3165..ff947ec9c 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -26,4 +26,4 @@ jobs: - name: Check license header run: | make lint-license && git add apis pkg cmd - git diff --cached --exit-code || (echo 'Please make sure every file has a correct license inserted' && exit 1); + git diff --cached --exit-code || (echo 'Please run "make lint-license" to verify license header' && exit 1); diff --git a/pkg/koordlet/metricsadvisor/be_collector.go b/pkg/koordlet/metricsadvisor/be_collector.go index 6979d1a6e..7f281a71d 100644 --- a/pkg/koordlet/metricsadvisor/be_collector.go +++ b/pkg/koordlet/metricsadvisor/be_collector.go @@ -1,17 +1,17 @@ /* - Copyright 2022 The Koordinator Authors. +Copyright 2022 The Koordinator 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 +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 + 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. +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 metricsadvisor diff --git a/pkg/koordlet/metricsadvisor/be_collector_test.go b/pkg/koordlet/metricsadvisor/be_collector_test.go index 8d840f6d0..3c1804541 100644 --- a/pkg/koordlet/metricsadvisor/be_collector_test.go +++ b/pkg/koordlet/metricsadvisor/be_collector_test.go @@ -1,17 +1,17 @@ /* - Copyright 2022 The Koordinator Authors. +Copyright 2022 The Koordinator 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 +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 + 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. +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 metricsadvisor