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 in the UseConcreteType analyzer. #6407

Merged
merged 1 commit into from
Jan 6, 2023
Merged

Fix false positive in the UseConcreteType analyzer. #6407

merged 1 commit into from
Jan 6, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Jan 6, 2023

The code was treating assignment to a parameter within a method as though it was a argument to the containing method call, which was totally incorrect. In this analyzer, we don't care about assignments to parameters, as that doesn't influence what the analyzer is concerned with.

The code was treating assignment to a parameter within a method as though
it was a argument to the containing method call, which was totally
incorrect. In this analyzer, we don't care about assignments to
parameters, as that doesn't influence what the analyzer is concerned
with.
@geeknoid geeknoid requested a review from a team as a code owner January 6, 2023 01:43
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #6407 (038ca78) into main (14e2ece) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6407   +/-   ##
=======================================
  Coverage   96.14%   96.15%           
=======================================
  Files        1365     1365           
  Lines      317447   317448    +1     
  Branches    10263    10263           
=======================================
+ Hits       305224   305228    +4     
+ Misses       9787     9784    -3     
  Partials     2436     2436           

Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@buyaa-n buyaa-n merged commit 6ae2683 into dotnet:main Jan 6, 2023
@github-actions github-actions bot added this to the vNext milestone Jan 6, 2023
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.

2 participants