-
Notifications
You must be signed in to change notification settings - Fork 536
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
Run more linters with golangci-lint #1244
Comments
@oxddr: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
@oxddr I'd like to work on it |
@bitcodr that's great to hear. I think the best way to proceed is to pick up one of the linters from above (e.g. |
Hey @bitcodr Are you perhaps still working on this? If so feel free to |
/assign |
Adding gofmt would be especially useful. |
@oxddr Cleared errors for few of the modules, need some help on "clusterloader2" on few errors, ERRO Running error: deadcode: analysis skipped: errors in package: [.../perf-tests/clusterloader2/pkg/chaos/nodes.go:109:52: cannot use k.client (variable of type kubernetes.Interface) as kubernetes.Interface value in argument to util.GetSchedulableUntainedNodes: wrong type for method AdmissionregistrationV1 .../perf-tests/clusterloader2/pkg/chaos/nodes.go:114:52 |
@satishbellapu - this looks strange.
|
Hey @wojtek-t, I would like to fix it! Is this up for grabs? |
I didn't see any actions from @satishbellapu for last month, so it seems fine. |
/assign |
Errcheck has been added, Deadcode linter on the way! |
I think we're fine without them (at least now). We can add them later... |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Currently we run only
golint
andgofmt
. We should at least enable linters which are enabled by default ingolangci-lint
:Enabling some of them (I've checked
errcheck
anddeadcode
) would require fixing outstanding issues.Work here should be done incrementally, one-by-one.
/good-first-issue
/help-wanted
The text was updated successfully, but these errors were encountered: