-
Notifications
You must be signed in to change notification settings - Fork 465
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
Bogus RS0026: Do not add multiple public overloads with optional parameters #6757
Comments
@filipw FYI |
This analyzer diagnostic was added to enforce: https://github.com/dotnet/roslyn/blob/master/docs/Adding%20Optional%20Parameters%20in%20Public%20API.md See section |
Another case where this analyzer is bogus IMO: Task ExecuteAsync(IAsyncCommand command, CancellationToken cancellation = default);
Task<TResult> ExecuteAsync<TResult>(IAsyncCommand<TResult> command, CancellationToken cancellation = default); The analyzer thinks both are overloads of each other, where one is generic and the other isn't. I wouldn't expect this case to be flagged. |
The Roslyn analyzer reports bogus errors RS0026.
For example for completely sound public APIs:
We already have 10 suppressions of this in the code base. Seems like the analyzer should be fixed to not flag valid overloads.
The text was updated successfully, but these errors were encountered: