-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support --fix for gofumpt #1239
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
Conversation
457ad6a
to
db4a9e6
Compare
|
I created an issue to add it as a new linter |
44e4831
to
2db7582
Compare
617c693
to
7972626
Compare
@golangci/team Please review this |
/lgtm |
@golangci/team Could anyone please review it? |
7972626
to
adf9d65
Compare
@golangci/team Could anyone review it? Approve? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This new linter broke |
|
Add autofix functionality (
-w
)Add fix and linter tests.
Closes: #490
Since the
gofumpt/format.Source
returns already formatted body of a file, butgolangci-lint
expects a diff to support auto-fixing, so I usegithub.com/shazow/go-diff/difflib
library to make a diff of input and output. I expect, that it can be slower thangofmt
linter.