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

lint: Enable goimports #2366

Merged
merged 1 commit into from Feb 25, 2019
Merged

lint: Enable goimports #2366

merged 1 commit into from Feb 25, 2019

Conversation

siggy
Copy link
Member

@siggy siggy commented Feb 24, 2019

goimports checks import lines, adding missing ones and removing
unreferenced ones:
https://godoc.org/golang.org/x/tools/cmd/goimports

It also requires named imports for packages whose
import paths don't match their package names:

Also standardized named imports of common Kubernetes packaages.

Part of #217

Signed-off-by: Andrew Seigner siggy@buoyant.io

@siggy siggy self-assigned this Feb 24, 2019
Copy link

@rmars rmars left a comment

Choose a reason for hiding this comment

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

🚀 😻 I like this change a lot.

goimports checks import lines, adding missing ones and removing
unreferenced ones:
https://godoc.org/golang.org/x/tools/cmd/goimports

It also requires named imports for packages whose
import paths don't match their package names:
- golang/go#28428
- https://go-review.googlesource.com/c/tools/+/145699/

Also standardized named imports of common Kubernetes packaages.

Part of #217

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
@siggy siggy merged commit 25e4623 into master Feb 25, 2019
@siggy siggy deleted the siggy/goimports-lint branch February 25, 2019 23:51
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.

None yet

2 participants