-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Gofumpt all the things #12392
Gofumpt all the things #12392
Conversation
Format the code with gofumpt to prevent my IDE from reformatting every time I open a file. gofumpt provides a superset of gofmt, so should not impact users that are not using gofumpt. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Nicolas De Loof <[email protected]>
b2c4389
to
50f2f54
Compare
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
Open question, should not we add a check of the formatting during the validation step in the CI? 🤔
.github/workflows/ci.yml
Outdated
@@ -50,6 +50,7 @@ jobs: | |||
- validate-go-mod | |||
- validate-headers | |||
- validate-docs | |||
- validate-fmt |
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.
FWIW; there's a golangci-lint linter for gofumpt
; https://golangci-lint.run/usage/linters/#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.
nice, makes things even simpler
57b9d9b
to
0c7adab
Compare
Thanks! I started to add the same logic as we had in docker/cli in the Makefile, which does a "optimistic" try to see if |
0c7adab
to
38b61a1
Compare
Signed-off-by: Nicolas De Loof <[email protected]>
38b61a1
to
9aec80b
Compare
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
same as #12365 + make target