-
Notifications
You must be signed in to change notification settings - Fork 669
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: gofumpt -w -extra .
#969
Conversation
Hi @Dentrax. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
I can see a few other sigs projects are using gofumpt 👍🏼 |
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, but could we add it to the makefile so people can easily update when their PRs fail?
Make sense! Added |
@@ -137,6 +140,12 @@ ifndef HAS_GOLANGCI | |||
endif | |||
./_output/bin/golangci-lint run | |||
|
|||
fmt: | |||
ifndef HAS_GOFUMPT |
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.
thoughts on adding it to the script used by verify-gofmt
?
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.
actually golangci-lint already verifies it. should we also add a secondary check anyway?
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.
I don't think that's necessary. @damemi ?
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.
It looks like make verify
already runs lint
, so we don't need a second check then. As long as there is a local way to verify that this has been updated
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.
please also notice that this make fmt
is to run gofumpt formatter on every **/*.go
file. (excludes ./vendor by default)
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.
@damemi are you suggesting that we should remove make fmt
since lint
already runs this?
@Dentrax sorry for the delay on this PR. would you please rebase so we can move forward on the review? |
Enable gofumpt in golangci Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Rebased. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Enable gofumpt in golangci
Signed-off-by: Furkan furkan.turkal@trendyol.com