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

Filter source generator diagnostics by SuppressMessageAttribute #66965

Merged
merged 3 commits into from
Feb 25, 2023

Conversation

jjonescz
Copy link
Member

Fixes #66337.

@jjonescz jjonescz force-pushed the 66337-SG-SuppressMessageAttribute branch from 8ca43c1 to fcacd65 Compare February 20, 2023 14:01
@jjonescz jjonescz marked this pull request as ready for review February 20, 2023 15:21
@jjonescz jjonescz requested a review from a team as a code owner February 20, 2023 15:21
@@ -1280,6 +1280,92 @@ void verifyDiagnosticsWithSource(string source, (Diagnostic, TextSpan)[] reportD
}
}

[Fact, WorkItem(66337, "https://github.com/dotnet/roslyn/issues/66337")]
public void Diagnostics_Respect_SuppressMessageAttribute()
Copy link
Member

Choose a reason for hiding this comment

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

Can we get the same tests for VB?

Copy link
Member Author

Choose a reason for hiding this comment

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

Didn't notice there are VB tests for this. Added.

@jjonescz jjonescz requested a review from jaredpar February 24, 2023 08:21
@jjonescz jjonescz merged commit 62a827b into dotnet:main Feb 25, 2023
@jjonescz jjonescz deleted the 66337-SG-SuppressMessageAttribute branch February 25, 2023 09:55
@ghost ghost added this to the Next milestone Feb 25, 2023
@RikkiGibson RikkiGibson modified the milestones: Next, 17.6 P2 Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings raised by incremental source generators are not disabled by the SuppressMessage attribute
5 participants