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 false positive for CA1854 across instances #7309

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

Conversation

CollinAlpert
Copy link
Contributor

@CollinAlpert CollinAlpert commented May 10, 2024

Affected analyzer: PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer
Affected diagnostic IDs: CA1854

This PR fixes an issue where the analyzer considers two dictionaries equal when they come from different instances of a type.

Fixes #7295

@CollinAlpert CollinAlpert requested a review from a team as a code owner May 10, 2024 14:43
Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.47%. Comparing base (bc8aca0) to head (fb87fa2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7309      +/-   ##
==========================================
- Coverage   96.47%   96.47%   -0.01%     
==========================================
  Files        1443     1443              
  Lines      345400   345428      +28     
  Branches    11364    11366       +2     
==========================================
+ Hits       333239   333264      +25     
- Misses       9282     9283       +1     
- Partials     2879     2881       +2     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant