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
Create .editorconfig #2528
Create .editorconfig #2528
Conversation
indent_style = space | ||
trim_trailing_whitespace = true | ||
|
||
[*.{json,yml,md}] |
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.
Do we use json/yml in our codebase?
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.
yml is used for appveyor, gitpod and travis, at least.
root = true | ||
|
||
[*] | ||
end_of_line = crlf |
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.
This is not accurate, most files should use native line endings. See .gitattributes
.
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.
According to
https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#end_of_line
there is not yet a value to translate "native line endings"
so I will remove it from the editorconfig.
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.
Fixed by commit deebc58.
According to https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#end_of_line there is not yet any value to translate "use the native end-of-line" from the VCS. So for the time being, let's follow the advice mentioned in the article: > if you want to use native line endings between different operating systems it is better not to set this option and leave that task to the VCS.
Purpose
Add .editorconfig file to automate some files-params while coding