Skip to content
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

What is the meaning of adding .editorconfig file to the project? #262

Closed
monkey92t opened this issue Mar 21, 2023 · 4 comments
Closed

What is the meaning of adding .editorconfig file to the project? #262

monkey92t opened this issue Mar 21, 2023 · 4 comments

Comments

@monkey92t
Copy link

It from #3, i don't understand why this file exists..

@yixinglu
Copy link
Contributor

you could refer the document and get to know what's the editorconfig.

@monkey92t
Copy link
Author

you could refer the document and get to know what's the editorconfig.

Oh~, I understand the role of the editorconfig file, what I want to ask is why use editorconfig to configure the go project.

It forces everyone to use the configuration in editorconfig. For go projects, we should abide by the specifications of gofmt/golangci-lint.

We only need to ensure that the submitted code conforms to the specifications, rather than setting the IDE tools used by users.

It forced to change my goland configuration, I think the editorconfig file is configured for everyone's habits, not for the project.

@yixinglu
Copy link
Contributor

yixinglu commented Sep 5, 2023

editorconfig is not only for configuring local editing, but also for configuring the display of code in GitHub, such as tabbing indented by 2 spaces

@QingZ11
Copy link

QingZ11 commented Oct 20, 2023

Hi, I have noticed that the issue you created hasn’t been updated for nearly a month, so I have to close it for now. If you have any new updates, you are welcome to reopen this issue anytime.

Thanks a lot for your contribution anyway 😊

这个 issue 超过一个月没有更新内容了,这边先行关闭了。如果你有任何更新的内容,可以再打开这个 issue 哈。

@QingZ11 QingZ11 closed this as completed Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants