Skip to content

fix parsing .editorconfig line endings, add a unit test - #10736

Closed
JanProvaznik wants to merge 1 commit into
dotnet:mainfrom
JanProvaznik:dev/janpro/fix-editorconfig-eol-parsing
Closed

JanProvaznik wants to merge 1 commit into
dotnet:mainfrom
JanProvaznik:dev/janpro/fix-editorconfig-eol-parsing

Conversation

@JanProvaznik

@JanProvaznik JanProvaznik commented Oct 1, 2024 •

Copy link
Copy Markdown
Member

Fixes #10684

Context

editorconfig settings were ignored due to being incapable of parsing it if they had different line endings than the current system uses

Changes Made

use StreamReader instead of string.Split

Testing

unit test that file with multiple line endings is parsed correctly

Notes

This is the fix that should go to main, a simpler fix #10740 goes to servicing.

@JanProvaznik

Copy link
Copy Markdown
Member Author

@dotnet-policy-service agree company="Microsoft"

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.

Buildcheck - .editorconfig seems to be ignored

2 participants