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

CSharpObjectInitializationTracker: Add support for tuples and assignment and declaration in the same deconstruction part 2 #5841

Merged

Conversation

csaba-sagi-sonarsource
Copy link
Contributor

No description provided.

@csaba-sagi-sonarsource csaba-sagi-sonarsource added this to the 8.42 milestone Jul 14, 2022
@github-actions github-actions bot added this to In progress in Best Kanban Jul 14, 2022
@github-actions github-actions bot moved this from In progress to Review in progress in Best Kanban Jul 14, 2022
@csaba-sagi-sonarsource csaba-sagi-sonarsource removed their assignment Jul 14, 2022
Best Kanban automation moved this from Review in progress to Review approved Jul 14, 2022
Copy link
Contributor

Choose a reason for hiding this comment

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

One minor optimization only.

{
var assignmentMap = assignment.MapAssignmentArguments();
return assignmentMap.Any(x => variableSymbol.Equals(GetAssignedVariableSymbol(x.Left, semanticModel))
&& IsTrackedPropertyName(x.Left)

Choose a reason for hiding this comment

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

IsTrackedPropertyName should go first, because it is not querying the semantic model.

@sonarcloud
Copy link

sonarcloud bot commented Jul 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented Jul 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@csaba-sagi-sonarsource csaba-sagi-sonarsource merged commit 31bb91c into master Jul 14, 2022
Best Kanban automation moved this from Review approved to Validate Peach Jul 14, 2022
@csaba-sagi-sonarsource csaba-sagi-sonarsource deleted the čaba/csharpObjectInitializationTracker-decon branch July 14, 2022 21:10
@csaba-sagi-sonarsource csaba-sagi-sonarsource moved this from Validate Peach to Done in Best Kanban Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Best Kanban
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants