kubewharf / katalyst-core

Katalyst aims to provide a universal solution to help improve resource utilization and optimize the overall costs in the cloud. This is the core components in Katalyst system, including multiple agents and centralized components
Apache License 2.0
420 stars 103 forks source link

change gofmt to gofumpt for strict formatting #574

Closed waynepeking348 closed 4 months ago

waynepeking348 commented 4 months ago

What type of PR is this?

enhancements

What this PR does / why we need it:

change gofmt to gofumpt for strict formatting

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 81.27854% with 82 lines in your changes are missing coverage. Please review.

Project coverage is 56.02%. Comparing base (17dfadc) to head (5de2dd1). Report is 1 commits behind head on main.

Files Patch % Lines
pkg/client/control/unstructured.go 23.07% 10 Missing :warning:
...ins/memory/dynamicpolicy/policy_advisor_handler.go 46.66% 8 Missing :warning:
pkg/agent/qrm-plugins/cpu/nativepolicy/policy.go 36.36% 7 Missing :warning:
pkg/agent/qrm-plugins/cpu/dynamicpolicy/policy.go 54.54% 5 Missing :warning:
...g/agent/qrm-plugins/memory/dynamicpolicy/policy.go 58.33% 5 Missing :warning:
pkg/client/control/vpa.go 37.50% 5 Missing :warning:
pkg/client/control/cnc.go 0.00% 4 Missing :warning:
pkg/controller/kcc/util/kcct.go 50.00% 3 Missing :warning:
pkg/custom-metric/provider/provider_dummy.go 0.00% 3 Missing :warning:
pkg/agent/orm/endpoint/resource_plugin_stub.go 0.00% 2 Missing :warning:
... and 26 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #574 +/- ## ========================================== + Coverage 55.80% 56.02% +0.22% ========================================== Files 532 532 Lines 49727 49717 -10 ========================================== + Hits 27752 27856 +104 + Misses 18436 18302 -134 - Partials 3539 3559 +20 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/574/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | Coverage Δ | | |---|---|---| | [unittest](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/574/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `56.02% <81.27%> (+0.22%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.