-
Notifications
You must be signed in to change notification settings - Fork 231
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
S1656: Add support for deconstruction #5784
Conversation
@@ -26,20 +26,21 @@ namespace SonarAnalyzer.UnitTest.Rules | |||
[TestClass] | |||
public class SelfAssignmentTest | |||
{ | |||
private readonly VerifierBuilder builderCS= new VerifierBuilder<CS.SelfAssignment>(); | |||
private readonly VerifierBuilder builderVB= new VerifierBuilder<VB.SelfAssignment>(); |
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.
code style: one more space is needed before the equals sign.
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.
LGTM - There are two spaces missing in the Test file.
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.
LGTM
var assigments = expression.MapAssignmentArguments().Where(x => CSharpEquivalenceChecker.AreEquivalent(x.Left, x.Right)); | ||
foreach (var assigment in assigments) |
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.
I wouldn't give it a name, it's single use. I'd put the linq inside foreach
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! |
No description provided.