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

feat: Add dx to catch ConfigureAwait(false) #152

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

benjiro
Copy link
Member

@benjiro benjiro commented Sep 19, 2023

This PR

  • Enable dotnet anaylzers
  • Ignore rule in benchmarks/tests

Related Issues

Stop #149 happening again in the future

Notes

N/A

Follow-up Tasks

N/A

How to test

N/A

@benjiro benjiro force-pushed the feat/enable-ca2007-analyzer-rule branch from 96469b1 to ade7f82 Compare September 19, 2023 13:19
- Enable dotnet anaylzers
- Ignore rule in benchmarks/tests

Signed-off-by: Benjamin Evenson <[email protected]>
@benjiro benjiro force-pushed the feat/enable-ca2007-analyzer-rule branch from ade7f82 to 3fec80a Compare September 20, 2023 11:55
@@ -12,6 +13,7 @@ namespace OpenFeature.Benchmark
[SimpleJob(RuntimeMoniker.Net60, baseline: true)]
[JsonExporterAttribute.Full]
[JsonExporterAttribute.FullCompressed]
[SuppressMessage("Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task")]
Copy link
Member Author

Choose a reason for hiding this comment

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

Adding ConfigureAwait is pointless in the testing suite.

@benjiro benjiro marked this pull request as ready for review September 20, 2023 11:57
@benjiro benjiro requested a review from a team as a code owner September 20, 2023 11:57
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #152 (3fec80a) into main (dd92cbf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #152   +/-   ##
=======================================
  Coverage   93.91%   93.91%           
=======================================
  Files          20       20           
  Lines         542      542           
  Branches       39       39           
=======================================
  Hits          509      509           
  Misses         20       20           
  Partials       13       13           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@benjiro benjiro merged commit 9c42d4a into main Sep 22, 2023
11 checks passed
@toddbaert
Copy link
Member

@benjiro Thanks!

@toddbaert toddbaert deleted the feat/enable-ca2007-analyzer-rule branch September 25, 2023 13:36
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.

3 participants