-
Notifications
You must be signed in to change notification settings - Fork 469
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 various IDE and CA diags raised on master #4555
Conversation
src/Microsoft.CodeAnalysis.Analyzers/CSharp/CSharpImmutableObjectMethodAnalyzer.cs
Outdated
Show resolved
Hide resolved
7aa418f
to
9b91512
Compare
Codecov Report
@@ Coverage Diff @@
## master #4555 +/- ##
==========================================
- Coverage 95.77% 95.77% -0.01%
==========================================
Files 1193 1193
Lines 269069 269067 -2
Branches 16243 16245 +2
==========================================
- Hits 257704 257698 -6
+ Misses 9274 9260 -14
- Partials 2091 2109 +18 |
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.
Couple main points:
- I would like to see the change in the PR to bump up our CodeStyleAnalyzerVersion so the analyzer violations fixed here become build warnings and future violations fail build.
- We would want the 2.9.x change to go in and merge with master before taking this PR into master
Additionally, please make sure any in-source suppressions or editorconfig settings for these 4 rules IDs are removed from the repo (where approapriate). |
This should be unblocked once #4573 is merged. |
242c497
to
f8af352
Compare
I am still confused why these CA and IDE diagnostics are not being flagged on build prior to this PR. Your recent PR to move to CodeStyle layer to 3.8.0 should ensure these are enabled on build and violations should cause build failures: roslyn-analyzers/eng/Versions.props Lines 27 to 29 in b37ca50
I will investigate further. |
@Evangelink Seems like there are lot of IDE and CA violations even in 2.9.x branch which are warnings in IDE, but still not failing build. I will fix the 2.9.x branch first and handle the violations in master when the PR merges into master. |
The IDE0090 warnings not failing build seem to be in 3.9.x beta CodeStyle NuGet packages, not in the 3.8.0 ones, hence these are not failing build. I will try to bump the version even higher in 2.9.x branch and try to get these fixed as part of the update. |
@@ -337,7 +338,9 @@ static string GetDeclarationId(ISymbol symbol) | |||
} | |||
} | |||
|
|||
#pragma warning disable CA1024 // Use properties where appropriate |
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 diagnostic does not seem to be a build warning. We normally avoid adding source suppressions for IDE-suggestions.
src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/DataFlowOperationVisitor.cs
Outdated
Show resolved
Hide resolved
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.
Overall LGTM. Have a question about a newly added field + request to revert all suppressions added for non-warning diagnostics.
f8af352
to
1e6787b
Compare
Fix various IDE and CA rules raised on the repo.