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

Suppress CA2252 related warnings #7846

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

pgovind
Copy link

@pgovind pgovind commented Sep 7, 2021

I was building dotnet/runtime locally to test CA2252 and ran into some warnings generated from System.Runtime.Forwards.cs and System.Runtime.Intrinsics.Forwards.cs. In either case, the type forwarded to attribute references preview types, so CA2252 is triggered. I think the only thing to do here is to suppress the warnings during the build.

I considered adding a new property to the csproj, but the change here is so small that I don't think it's worth it.

cc @jeffhandley

@Anipik
Copy link
Contributor

Anipik commented Sep 7, 2021

do you think there will be cases where we may not want to suppress it ?

@pgovind
Copy link
Author

pgovind commented Sep 7, 2021

do you think there will be cases where we may not want to suppress it ?

Never in *typeforwards.cs I think.

Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

LGTM but I'd like to get a review from one of the libraries infrastructure folks too.

@Anipik Anipik merged commit 74201f3 into dotnet:main Sep 8, 2021
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