-
Notifications
You must be signed in to change notification settings - Fork 823
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 formatting guidelines to CONTRIBUTING.md #205
Add formatting guidelines to CONTRIBUTING.md #205
Conversation
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.
Super minor nit below. Happy for you to ignore if you want.
Curious question - #97 does mention a .editorconfig but we don't have an .editorconfig , even though this is closing that ticket.
Should we have a .editorconfig?
CONTRIBUTING.md
Outdated
|
||
When submitting pull requests, make sure to do the following: | ||
|
||
- Format all Go code with [gofmt](https://golang.org/cmd/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.
gofmt
and/or goimport
?
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.
Hmm. Technically gofmt
, but you'd be mad to write your own import statements and not use goimports
.
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.
How about another sentence after this one that says, "Many people use goimports
which adds import statements automatically while also running 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.
SGTM.
Build Succeeded 👏 Build Id: 322ba06c-6532-4b0d-afd7-d0f5ff1052e4 The following development artifacts have been built, and will exist for the next 30 days:
|
Build Succeeded 👏 Build Id: fc3df6b8-01a2-4d7d-91a4-ae28b035e05f The following development artifacts have been built, and will exist for the next 30 days:
|
Content LGTM - I'll repeat my earlier question, I think it got missed:
|
@markmandel Since opening the issue, I have realized |
Fixes #97