Skip to content

Remove line ending config from editorconfig#1867

Merged
marek-safar merged 1 commit intodotnet:mainfrom
agocke:remove-editorconfig-lf
Mar 4, 2021
Merged

Remove line ending config from editorconfig#1867
marek-safar merged 1 commit intodotnet:mainfrom
agocke:remove-editorconfig-lf

Conversation

@agocke
Copy link
Member

@agocke agocke commented Mar 3, 2021

Git usually handles this correctly, and there are a number of problems with using LF locally on Windows.

For instance, testing code fixes needs to have a baseline file, but the codefix APIs always insert
Environment.Newline when applying the refactoring, which makes it difficult to record the baseline in the file.

Git usually handles this correctly, and there are a number of problems with using LF locally on Windows.
@agocke agocke requested a review from marek-safar March 3, 2021 23:36
@marek-safar marek-safar merged commit 74fb9a9 into dotnet:main Mar 4, 2021
@agocke agocke deleted the remove-editorconfig-lf branch March 5, 2021 01:55
vitek-karas added a commit to vitek-karas/linker that referenced this pull request Mar 10, 2021
Change dotnet#1867 breaks running lint on Windows since it will reformat pretty much all the source files in the repo (change of newline). So I reverted that change 74fb9a9.

Additionally latest lint writes formatDiagnosticLog.binlong next to the solution file when running with --verbosity diagnostic. There's no way to redirect or disable this - dotnet/format#1041.

So this change disables --verbosity diagnostic for local runs of lint and adds it only to the CI (where the machine will clean the enlistment anyway).
vitek-karas pushed a commit to vitek-karas/linker that referenced this pull request Mar 11, 2021
Git usually handles this correctly, and there are a number of problems with using LF locally on Windows.
agocke added a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Git usually handles this correctly, and there are a number of problems with using LF locally on Windows.

Commit migrated from dotnet/linker@74fb9a9
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

Successfully merging this pull request may close these issues.

2 participants