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

Create .editorconfig #2528

Merged
merged 1 commit into from Apr 11, 2020
Merged

Create .editorconfig #2528

merged 1 commit into from Apr 11, 2020

Conversation

Saibamen
Copy link
Contributor

@Saibamen Saibamen commented Apr 11, 2020

Purpose

Add .editorconfig file to automate some files-params while coding

indent_style = space
trim_trailing_whitespace = true

[*.{json,yml,md}]
Copy link
Contributor

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?

Copy link
Contributor

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.

@HBelusca HBelusca merged commit 32db19f into reactos:master Apr 11, 2020
root = true

[*]
end_of_line = crlf
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by commit deebc58.

HBelusca added a commit that referenced this pull request Apr 11, 2020
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.
@Saibamen Saibamen deleted the patch-1 branch April 11, 2020 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants