Skip to content
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

Fix CA1033 warning #2193

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

Zombach
Copy link
Contributor

@Zombach Zombach commented Jul 12, 2024

Pull Request

The issue or feature being addressed

#1290

Details on the issue fix or feature implementation

  • Suppress CA1033 in the code or fix the warning

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build

I will conditionally divide the partitions by directory names

Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.80%. Comparing base (fcf94b2) to head (d846213).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2193   +/-   ##
=======================================
  Coverage   83.80%   83.80%           
=======================================
  Files         313      313           
  Lines        7162     7162           
  Branches     1060     1060           
=======================================
  Hits         6002     6002           
  Misses        789      789           
  Partials      371      371           
Flag Coverage Δ
linux 83.80% <ø> (ø)
macos 83.80% <ø> (ø)
windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -4,7 +4,7 @@
/// Context that carries with a single execution through a Policy. Commonly-used properties are directly on the class. Backed by a dictionary of string key / object value pairs, to which user-defined values may be added.
/// <remarks>Do not re-use an instance of <see cref="Context"/> across more than one execution.</remarks>
/// </summary>
public partial class Context : IDictionary<string, object>, IDictionary, IReadOnlyDictionary<string, object>
public sealed partial class Context : IDictionary<string, object>, IDictionary, IReadOnlyDictionary<string, object>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change for a public type as a user may have derived from it themselves for a custom class.

Copy link
Contributor Author

@Zombach Zombach Jul 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really. Then all that remains is to either suppress the error in the file header or close this PR

@martincostello martincostello enabled auto-merge (squash) July 12, 2024 20:15
@martincostello martincostello merged commit 40562a9 into App-vNext:main Jul 12, 2024
15 checks passed
@Zombach Zombach deleted the zombach/remove-warning-ca1033 branch July 12, 2024 20:32
ShawnWu33 added a commit to ShawnWu33/Polly that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants