-
Notifications
You must be signed in to change notification settings - Fork 470
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
Feature: Adhere to ContractVerification attribute #4710
Comments
This could even be a Roslyn feature, that is all analyzers (first-party and third-party) are configurable to whether to adhere to the attribute or not. |
Tagging @terrajobst @stephentoub since this is related to .NET API usage. |
This attribute is specific to the System.Diagnostics.Contract system and rewriter. It is not related to Roslyn analyzers. |
@stephentoub Should |
Personally, I don't think CA1806 should be paying attention to it. |
Yes, I'm one of those who wanted to add the attribute anywhere it could benefit from CA1806. @mavasani Are you okay with dropping Pure from CA1806? (Probably only after a new runtime attribute is introduced because some customers may be relying on the existing attribute) Tagging @sharwell @333fred as well (#1164 #1171) @stephentoub I think it also makes sense for the API docs of Pure to be clear about the actual intent of the attribute |
We are not going to add support for ContractVerification. |
I found ContractVerification attribute by chance 😄
The description says:
So I believe we should adhere to it, or at least, have an option to that.
This should be applied to most (all?) analyzers.
The text was updated successfully, but these errors were encountered: