-
Notifications
You must be signed in to change notification settings - Fork 6
chore: add editorconfig file #205
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
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for this. Something along these lines would be good. I have my editor set up to normalize all the things I see in the editorconfig but I can tell @zeroshade uses some other method. What I do now is save without format-on-save. @zeroshade would this work okay for your editor setup? btw I ran |
|
Thank you for checking with I’ve made formatting fixes, added commit hashes to |
| trim_trailing_whitespace = true | ||
|
|
||
| [*.{go,mod}] | ||
| indent_style = tab |
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.
why switch to indent_style tab for go instead of leaving it as space?
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.
All of the go files in the repo use tabs for indentation. This also seems to be the standard, as gofmt uses tabs.
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.
Okay, fair enough 😄
Add a
.editorconfigfile to maintain consistent coding styles across developers and editors.