Replies: 2 comments 5 replies
-
This seems more suitable as an analyzer that suppresses CS1998, CS0219 and IDE0059 when the method throws |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is the
NotImplementedException
that also does a good job of suppressing some spurious warnings, like IDE0060 unused parameter:However, it can't help with everything:
I suggest to add a new
[WorkInProgress]
attribute (e.g. in System.Diagnostics.CodeAnalysis). Its purpose is to be a temporary attribute added to methods that you have outlined or started writing but are not finished writing with yet.For all methods that have this attribute, we could
throw new NotImplementedException()
as last statement of the method to get rid of all "not all possible code paths have a return value" warnings in a compileable fashion without having to modify the codeBeta Was this translation helpful? Give feedback.
All reactions