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

Add support for .editorconfig documents #734

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

sharwell
Copy link
Member

No description provided.

@sharwell sharwell requested a review from a team as a code owner February 23, 2021 04:21
@sharwell sharwell force-pushed the analyzer-config branch 2 times, most recently from dfdbcb7 to 6bbbf56 Compare February 23, 2021 14:49
@jmarolf
Copy link
Contributor

jmarolf commented Feb 23, 2021

Thanks @sharwell! Lets merge this as soon as CI passes

Comment on lines +38 to +41
AnalyzerConfigFiles =
{
("/.editorconfig", SourceText.From(RootEditorConfig, Encoding.UTF8)),
},
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

@sharwell sharwell Feb 23, 2021

Choose a reason for hiding this comment

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

Wondering when this can be different than using AdditionalFiles

An .editorconfig which is added only as an additional file is meaningless on its own. The only reason that analyzer works is it manually parses the file, which may or may adhere to the behavior the compiler provides (I'm fairly sure it doesn't).

Copy link
Member

@Youssef1313 Youssef1313 Feb 23, 2021

Choose a reason for hiding this comment

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

@sharwell Ahhhh, that's why it works in roslyn-analyzers tests without a [*.cs] section while the compiler requires it.

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.

3 participants