-
-
Notifications
You must be signed in to change notification settings - Fork 946
Miscellaneous cleanup/throw helpers #1491
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,3 +188,6 @@ dotnet_diagnostic.MA0040.severity = none | |
# MA0042: Do not use blocking calls in an async method | ||
# duplicate of CA1849 | ||
dotnet_diagnostic.MA0042.severity = none | ||
|
||
# S3236: Caller information arguments should not be provided explicitly | ||
dotnet_diagnostic.S3236.severity = none | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this one reported? Don't have time to check myself now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It comes when one wants to provide a value for a parameter marked with public TimeSpan Timeout
{
get
{
return _timeout;
}
set
{
// EnsureValidTimeout(this TimeSpan timeSpan, [CallerArgumentExpression(nameof(timeSpan))] string? paramName = null)
value.EnsureValidTimeout(nameof(Timeout));
_timeout = value;
}
} I would probably suppress this one at the call sites, but #1480 will also bring more places where we don't want it (from Debug.Assert) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not possible to fix these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are coming from string.IsNullOrEmpty and friends which are not annotated for nullable analysis on lower targets