-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Buildcheck - .editorconfig seems to be ignored #10684
Comments
It is related to the selected end of line selected for the file.
We parse the string based on the current newLine of the OS. Since the EOF was not the one that is used on current OS if failed to parse the file. |
I see two possible ways:
|
Thanks @f-alizada for the quick look! What is the behavior of Roslyn (or possibly VS IDE settings)? We'd idealy be inline with that |
Roslyn covers the scenarios of different EOL by the |
Let's do that. The scenario of checking out the repo with specific EOL convention on a system with different convention is far too common |
Context
I came accross a case where
.editorconfig
settings for chaning checks diagnostics levels are not respected and.editorconfig
file is not captured in the binlog - meaning it's probably not recognized at all.Details
Notice the
BC0201
being set to error, but output as warning. Similarly BC0203 is set to error, but not lifted from default message.I suspect non-US locale might have an impact here?
Relevant info from
systeminfo
:Binlog and repro:
ReproAndBinlog.zip
The text was updated successfully, but these errors were encountered: