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

Remove CA2211 NoWarn #2316

Merged
merged 1 commit into from
Sep 28, 2024
Merged

Remove CA2211 NoWarn #2316

merged 1 commit into from
Sep 28, 2024

Conversation

gabidabet
Copy link
Contributor

Pull Request

The issue or feature being addressed

#1290

Details on the issue fix or feature implementation

I found that both classes SystemClock and TaskHelper are declared in the Polly/PublicAPI.Shipped.txt, so I opt for disabling the warning locally to prevent adding new cases without editing the shipped API.

We can make the TaskHelper.EmptyTask get-only property and we can make SystemClock an internal class if they weren't in the shipped api.

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

@gabidabet gabidabet changed the title Fixes CA2211 Fix CA2211 Sep 28, 2024
@gabidabet gabidabet changed the title Fix CA2211 Remove CA2211 NoWarn Sep 28, 2024
Copy link

codecov bot commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.38%. Comparing base (9f004a2) to head (7a1a2b8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2316   +/-   ##
=======================================
  Coverage   85.38%   85.38%           
=======================================
  Files         313      313           
  Lines        7457     7457           
  Branches     1126     1126           
=======================================
  Hits         6367     6367           
  Misses        745      745           
  Partials      345      345           
Flag Coverage Δ
linux 85.38% <ø> (+0.02%) ⬆️
macos 85.38% <ø> (ø)
windows 85.38% <ø> (+0.02%) ⬆️

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.

@martincostello martincostello merged commit 856bfdf into App-vNext:main Sep 28, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants