Skip to content

.editorconfig diagnostic suppressions don't apply to source-generated files #47384

@jasonmalinowski

Description

@jasonmalinowski

The failures in #47252 demonstrate this, I think. We have this set in our .editorconfig:

roslyn/.editorconfig

Lines 221 to 222 in 4602d5d

# warning RS0037: PublicAPI.txt is missing '#nullable enable'
dotnet_diagnostic.RS0037.severity = none

When we had the file checked in explicitly, then I'm guessing this took effect; when it's converted to source generator output, we're now getting warnings from the source-generated file.

It's not clear to me if the real fix here is we need to switch some of those settings to be global suppressions so they apply everywhere.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions