-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add gofumpt #490
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
Comments
Hi, nice tool, thank you! |
Given
Would |
Hey there, I'm also interested in adding gofumpt/goimports.
About new linter vs gofmt option is see pros and cons:
|
Hey, sorry for long responses, we are currently trying to deal with bugs and preparing to go1.14, so very low of capacity. I'm also not sure how to deal with linters that superset other linters, e.g. we can't just auto-ignore them. |
Maybe we can just start adding it as a new linter and disable gofmt/goimports manually. |
I created a PR for it: #1177 |
@teivah thanks for working on the PR, pleased to see that it was merged A quick scan of the PR suggests it doesn't currently map the golangci-lint "Autofix" functionality to a cc @mvdan as he'd probably be interested in knowing that this work is taking place to add gofumpt to golangci-lint |
Since gofump returns already formatted file instead of diff, so we need to use something like this https://github.com/sergi/go-diff library to create a diff then use |
This has been added in #1177. |
@SVilgelm, hello! Could you tell me something about this? |
@Antonboom latest master has an updated version of |
Then I have to wait v1.28.4 |
Include https://github.com/mvdan/gofumpt in set of linters.
The text was updated successfully, but these errors were encountered: