-
Notifications
You must be signed in to change notification settings - Fork 8
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
Other ways to support exclude from code analysis? #6
Comments
Thank you for the feedback! You are right, having to define this attribute should not be a requirement by default. This is a very good proposal for solving this problem. I will have a look into this and try to make these changes in a way that requires the least effort from end users. 👍 One open question is what we should do with the Right now I can think of three ways to handle this:
3 seems to be the most convenient option for end users, but it will also be harder to maintain, because this requires to make changes in two separate code files with only marginal differences. I am still leaning towards this option though, especially considering that this package will not require frequent updates. Thanks again for raising this issue! Feel free to share your thoughts on the open question above. |
For my opinion, I think almost nobody needs nullable support for .NET Standard 1.x. I may just use |
The new version 1.2.0 now excludes the attributes from code coverage by default. Feel free open new issues if the current code coverage solution does not work in certain cases. |
I think asking most people to define
NULLABLE_ATTRIBUTES_EXCLUDE_FROM_CODE_COVERAGE
to exclude from code analysis for all projects is troublesome. I found Exclude code from test coverage and code analysis declaring that[DebuggerNonUserCode]
and[DebuggerHidden]
can be used to exclude from code coverage. They all support .NET Standard 1.0.The text was updated successfully, but these errors were encountered: