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

Fix CA1859 false positive for anonymous types #7505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Thomas-Shephard
Copy link

Fixed CA1859 recommending changing a type to an anonymous (i.e. invalid) type.

Fixes #7504

@Thomas-Shephard Thomas-Shephard requested a review from a team as a code owner December 14, 2024 11:13
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.50%. Comparing base (7f449a5) to head (e948808).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7505      +/-   ##
==========================================
- Coverage   96.50%   96.50%   -0.01%     
==========================================
  Files        1450     1450              
  Lines      347435   347441       +6     
  Branches    11413    11414       +1     
==========================================
- Hits       335297   335290       -7     
- Misses       9245     9257      +12     
- Partials     2893     2894       +1     

@Thomas-Shephard Thomas-Shephard force-pushed the bugfix/CA1859-false-positive-anonymous-types branch from 90967bd to e948808 Compare December 14, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CA1859 shouldn't recommend upgrading to an anonymous type
1 participant