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

Add tool to auto-fix fieldalignment issues #2356

Closed
frederikhors opened this issue Nov 12, 2021 · 1 comment
Closed

Add tool to auto-fix fieldalignment issues #2356

frederikhors opened this issue Nov 12, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@frederikhors
Copy link

frederikhors commented Nov 12, 2021

Your feature request related to a problem? Please describe.

I'm using govet for fieldalignment (maligned was deprecated).

Here I found out there is a tool to auto-fix those lines:

There is a tool to detect and fix this.
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
fieldalignment -fix <package_path>

Describe the solution you'd like.

Can we add that auto tool in golangci-lint, plase?

Describe alternatives you've considered.

Manually loose time.

Additional context.

No response

@frederikhors frederikhors added the enhancement New feature or improvement label Nov 12, 2021
@ldez
Copy link
Member

ldez commented Nov 12, 2021

Duplicate of #1779

@ldez ldez marked this as a duplicate of #1779 Nov 12, 2021
@ldez ldez closed this as completed Nov 12, 2021
@ldez ldez added duplicate This issue or pull request already exists and removed enhancement New feature or improvement labels Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants