Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some golint issues and add its dependencies #379

Closed
wants to merge 1 commit into from
Closed

Fix some golint issues and add its dependencies #379

wants to merge 1 commit into from

Conversation

jayesh-srivastava
Copy link

@jayesh-srivastava jayesh-srivastava commented Feb 13, 2022

What this PR does / why we need it:
This PR fixes some non-comment related golint issues and also adds its dependencies.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
This PR partially fixes #250

Special notes for your reviewer
This PR only fixes some of the golint issues. A majority of the issues were related to structs and functions not being commented which is why I'm unable to work on those as I don't have a clear understanding of the whole codebase atm.
P.S - cluster-api-provider-bringyourownhost/issues/250#issuecomment-1037227086 and following comments.

@vmwclabot
Copy link

@jayesh-srivastava, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@jayesh-srivastava
Copy link
Author

cc @anusha94

Copy link
Contributor

@anusha94 anusha94 left a comment

Choose a reason for hiding this comment

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

minor nit.

test/e2e/e2e_docker_helper.go Outdated Show resolved Hide resolved
@@ -17,8 +17,7 @@ import (
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/archive"
"github.com/docker/docker/pkg/system"
. "github.com/onsi/gomega" // nolint: stylecheck
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing gomega is causing all sorts of lint and test errors I believe.

Copy link
Author

Choose a reason for hiding this comment

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

The no lint comment was used for gomega but that's an unused import and vscode itself removes it while saving the file.

@jayesh-srivastava
Copy link
Author

@anusha94 I guess the issues are related to linters. Also the golangci-lint linters aren't in parity with CAPI which should be the case because it helps in making the developer experience same. I've seen these issues for other CAP* projects like CAPZ and CAPG. I'll open the same for CAP-BYOH as well. After closing that issue, I guess this should work.

@vmwclabot
Copy link

@jayesh-srivastava, VMware has rejected your signed contributor license agreement. The merge can not proceed until the agreement has been resigned. Click here to resign the agreement.

@vmwclabot
Copy link

@jayesh-srivastava, VMware has rejected your signed contributor license agreement. The merge can not proceed until the agreement has been resigned. Click here to resign the agreement.

This pull request was closed.
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.

Fix go lint issues highlighted in Go report Card
3 participants