-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable CA1068 #1677
Enable CA1068 #1677
Conversation
@dotnet-policy-service agree |
@@ -13,7 +13,7 @@ public abstract partial class AsyncPolicy<TResult> | |||
protected abstract Task<TResult> ImplementationAsync( | |||
Func<Context, CancellationToken, Task<TResult>> action, | |||
Context context, | |||
CancellationToken cancellationToken, | |||
bool continueOnCapturedContext | |||
bool continueOnCapturedContext, |
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.
Just scan reading this PR before a proper review tomorrow, the public API surface area like this must not be changed to resolve these warnings. Anything this isn't internal or private must be suppressed only.
Changing the order of the parameters in the public API surface is a breaking change we cannot accept.
Thanks for your PR and helping us out. Various changes need to be reverted and updated to not break Polly though. |
As you can see in the build log, the Public API analyser flags the changes to the public surface of the library and breaks the build. For example:
|
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.
This is the wrong thing to do - the file is effectively set in stone and should not be edited.
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.
I get it. My bad.
Thank you for de review. I will work on it😀 |
This pull request is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further changes are made. |
This pull request was closed because it has been inactive for 14 days since being marked as stale. |
Pull Request
The issue or feature being addressed
Cleanup the Polly and Polly.Specs codebase #1290
Details on the issue fix or feature implementation
Enable CA1068 warning (CancellationToken parameters must come last) and code cleanup
Confirm the following