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

Use the same analyzers for V7 projects #1287

Merged
merged 5 commits into from
Jun 13, 2023
Merged

Conversation

martintmk
Copy link
Contributor

@martintmk martintmk commented Jun 13, 2023

Details on the issue fix or feature implementation

I have noticed the duplicate .editorconfig file that could be cause of #1272.

I got rid of it so all projects now use the default set of analyzers. The side effect is that the is now a LOT of issues in Polly project which I had to suppress (except a few low-risk, low effort fiixes).

For Polly.Specs I was a lot more benevolent and let VS do some cleanup.

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

@martincostello
Copy link
Member

I did have a play around with this locally for #1272 but it didn't seem to make any difference - maybe I just did something wrong 😄

Will take a proper look at the PR later this afternoon 👍

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #1287 (fcf5307) into main (b77e04f) will increase coverage by 0.00%.
The diff coverage is 91.66%.

@@           Coverage Diff           @@
##             main    #1287   +/-   ##
=======================================
  Coverage   83.25%   83.26%           
=======================================
  Files         263      263           
  Lines        6290     6291    +1     
  Branches      993      993           
=======================================
+ Hits         5237     5238    +1     
  Misses        844      844           
  Partials      209      209           
Flag Coverage Δ
linux ?
macos ?
windows 83.26% <91.66%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
src/Polly/Caching/AsyncCachePolicy.cs 100.00% <ø> (ø)
src/Polly/Caching/CachePolicy.cs 100.00% <ø> (ø)
src/Polly/CircuitBreaker/CircuitStateController.cs 94.11% <ø> (ø)
src/Polly/Fallback/FallbackSyntax.cs 68.51% <ø> (ø)
src/Polly/PolicyResult.cs 100.00% <ø> (ø)
src/Polly/Registry/PolicyRegistry.cs 89.18% <0.00%> (ø)
...rc/Polly/ResilienceStrategyConversionExtensions.cs 0.00% <ø> (ø)
src/Polly/Retry/RetrySyntax.cs 80.15% <ø> (ø)
.../Wrappers/ResilienceStrategyAsyncPolicy.TResult.cs 100.00% <ø> (ø)
...tilities/Wrappers/ResilienceStrategyAsyncPolicy.cs 100.00% <ø> (ø)
... and 9 more

... and 13 files with indirect coverage changes

@martincostello martincostello added CI/build v8 Issues related to the new version 8 of the Polly library. labels Jun 13, 2023
@martincostello martincostello added this to the v8.0.0 milestone Jun 13, 2023
Copy link
Member

@martincostello martincostello left a comment

Choose a reason for hiding this comment

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

A few minor comments, but otherwise some nice tidying-up. Thanks!

Comment on lines +10 to +13
<UseDefaultAnalyzers>true</UseDefaultAnalyzers>
<NoWarn>$(NoWarn);S103;S104;CA2000;IDE0011;SA1600;SA1204;SA1602;S6608;IDE1006;CA2008;CA1806;CA2201;</NoWarn>
<NoWarn>$(NoWarn);SA1414;CA1508;S3878;CA1030;S4144;S3717;SA1129;SA1407;S1402;SA1649;SA1402;S4056;CA1031</NoWarn>
<NoWarn>$(NoWarn);S2184;</NoWarn>
Copy link
Member

Choose a reason for hiding this comment

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

Savage 😄

Comment on lines +10 to +15
<NoWarn>$(NoWarn);IDE0011;SA1501;S103;IDE0055;SA1111;IDE0066;S3872;SA1127;SA1128;SA1402;SA1513;SA1414;S3215;S2955</NoWarn>
<NoWarn>$(NoWarn);IDE0044;IDE1006;CA1062;S107;CA1068;S4039;SA1121;CA1000;CA1063;SA1113;CA1031;CA1051;CA1200</NoWarn>
<NoWarn>$(NoWarn);SA1629;SA1612;CA2211;S2223;CA1032;CA1815;CA1816;S4457;SA1615;IDE0250;S109;SA1618;SA1407;CA1033</NoWarn>
<NoWarn>$(NoWarn);SA1515;S4023;CA1010;IDE0063;S2681;S3442;S3880;CA1064;SA1110;SA1203;SA1649;SA1625;SA1623;SA1118</NoWarn>
<NoWarn>$(NoWarn);S3253;S3971;S6605;CA1724;CA1716;SA1108;CA1710;S4049;S3246;SA1204;S3928;CA1508;CA1822;CA2201;SA1642</NoWarn>
<NoWarn>$(NoWarn);SA1805;SA1129;SA1805;CA1805;CA1821</NoWarn>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can make an issue to track turning some of these back on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do post merge.

@martintmk martintmk enabled auto-merge (squash) June 13, 2023 16:07
@martintmk martintmk merged commit 751e3bb into main Jun 13, 2023
@martintmk martintmk deleted the mtomka/use-analzyzers-v7 branch June 13, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/build v8 Issues related to the new version 8 of the Polly library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants