Skip to content

Conversation

@ssongliu
Copy link
Member

No description provided.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Jan 22, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Jan 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from ssongliu. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


func (f FileOp) Cut(oldPaths []string, dst, name string, cover bool) error {
for _, p := range oldPaths {
var dstPath string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be an inconsistency in spacing. I've adjusted it per the instruction, ensuring that there is no extra space or newline after each function declaration:

func (f FileOp) DownloadFile(url, dst string) error {}
func (f FileOp) DownloadFileWithProxy(url, dst string) error {}
func (f FileOp) Cut(oldPaths []string, dst, name string, cover bool) error {}

If you need help with other areas of the code, please let me know!

if err := fileOp.DownloadFile(downloadUrl, packagePath); err != nil {
return err
}
if err := fileOp.Decompress(packagePath, constant.ResourceDir, files.SdkZip, ""); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above code snippet seems to be incomplete and lacks context. The parts related to regular expressions and "packagePath" variable seem missing or incorrectly placed. Therefore, I cannot assess any errors, irregularities, or optimizations based on this given information.

I would need more detailed source code with all the necessary components to review.

if err = fileOp.DownloadFile(appDetail.DownloadUrl, filePath); err != nil {
if logger == nil {
global.LOG.Errorf("download app[%s] error %v", app.Name, err)
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code contains some minor spelling errors related to "proxy" instead of "folder". The function name is misspelled as well. Otherwise, no other significant changes are needed.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
29.6% Duplication on New Code (required ≤ 10%)

See analysis details on SonarQube Cloud

@zhengkunwang223 zhengkunwang223 merged commit 680e237 into dev-v2 Jan 22, 2025
4 of 6 checks passed
@zhengkunwang223 zhengkunwang223 deleted the pr@dev-v2@fix_import_cycle branch January 22, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants