You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While new Guid() or new() reads ambiguously, default is 100% as clear as Guid.Empty, since it matches the behavior of default anywhere else the keyword can be used.
My first assumption was that this was a false positive issue.
No rationale was given for why the sonar team believes the default keyword is best avoided for only this one type in particular.. IMO this change should be reverted, as it does not provide any additional clarity.
Description
No issue is raised if default or default(Guid) is used instead of new Guid().
Repro steps
Expected behavior
Issue should be raised for both default and default(Guid).
Actual behavior
No issue is raised.
Related information
The text was updated successfully, but these errors were encountered: