-
Notifications
You must be signed in to change notification settings - Fork 470
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
fixes for CA2021 Do not call Enumerable.Cast<T> or Enumerable.OfType<T> false positives #6459
Conversation
d4984e5
to
e9d1987
Compare
e9d1987
to
360f4b7
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6459 +/- ##
========================================
Coverage 96.41% 96.41%
========================================
Files 1371 1371
Lines 319011 319166 +155
Branches 10269 10270 +1
========================================
+ Hits 307564 307719 +155
+ Misses 8990 8989 -1
- Partials 2457 2458 +1 |
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs
Show resolved
Hide resolved
62c085d
to
e2050cb
Compare
(rebase/push to retrigger CI, as it failed with sporadic codecov problem) |
…T> false positives
e2050cb
to
638e7d8
Compare
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
...tCore.Analyzers/Runtime/DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.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.
Thank you for the fix @fowl2, left a few NITs for typo, overall LGTM. Please also update the severity level back to RuleLevelBuildWarning
.
Co-authored-by: Buyaa Namnan <buyankhishig.namnan@microsoft.com>
7d4f5a7
to
38bf4b4
Compare
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.
Thank you @fowl2 LGTM, I will merge this after we disable the analyzer for test projects in runtime
fixes for #6457