Open ShadowCommander opened 6 months ago
end_of_line = crlf
Why???
We aren't for sure adding these. This is just to revisit the options and make sure we have all the ones we want added, since there seem to be a few more since we last looked at them 3 years ago and decide if we should add them or not.
0x6273 does have a point about the CRLF setting, as #26401 introduced a workflow that will fail when there's anything with CRLF in the PR, or the repo at that HEAD pointer for that matter. It's a choice that you will have to make, but if CRLF is chosen, then the workflow will have to be updated accordingly.
See also .gitattributes, which I believe also has functionality for managing this.
Ah I thought they had a problem with the end_of_line
setting itself, since the settings are what the discussion is about. The values are either the current default values in the IDE or (in this case) what was in the .editorconfig, but commented out. I'll remove the value for this one.
The workflow actually wouldn't fail since in the git index it's all lf. Currently you can checkout and use whatever line ending you want in your worktree as long as commits are lf.
If we are going to force everyone to use a specific line ending style in the worktree like the issue author seemingly wants, it should be lf so that it's consistent with index.
Ah I thought they had a problem with the end_of_line setting itself
I do have a problem with it. Is there a reason why you want to force a specific line ending in people's worktrees? In git it's all the same so why does it matter to you? Is there some technical reason?
I wanted to know why it was commented out in the .editorconfig, so I put it on the list to get arguments for or against.
I don't have a lot of experience with the problems that line ending can or do cause, so I've put it on the list for others such as you to discuss whether we want it in the file or not.
Please stop assuming maliciousness. I'm not forcing anything here. Since it's a problem, it'd help if you could list out the problem clearly so that we can have comments why it isn't being included for future reference.
Description
We're getting a few inconsistencies around formatting in PRs recently, so it'd be best to write them into the .editorconfig and put them in the conventions doc.
Discuss which settings should be added and what values they should be set to. The values shown are either the current default values in the Rider IDE or the commented out value inside the current .editorconfig.
YAML
These ones are additional Resharper configs that are not currently defined in our .editorconfig, but are default in Rider.