★ wanayoo — archive 1999 https://github.com/code-cracker/code-cracker/issues/550Nouvelle recherche | Portail wanayoo
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

Code fix error in CC0014 TernaryOperatorAnalyzer (assignment) #550

Closed
filippobottega opened this issue Oct 12, 2015 · 7 comments
Closed

Code fix error in CC0014 TernaryOperatorAnalyzer (assignment) #550

filippobottega opened this issue Oct 12, 2015 · 7 comments
Assignees
Milestone

Comments

@filippobottega
Copy link

@filippobottega filippobottega commented Oct 12, 2015

Code fix for CC0014 TernaryOperatorAnalyzer is not compatible with += operator in VB code.
Example:
Original code:
If values = String.Empty Then
values = valueString
Else
values += ", " & valueString
End If
Fixed code:
values = If(values = String.Empty, valueString, ", " & valueString)

@giggio giggio added this to the 1.0.0 milestone Oct 16, 2015
@giggio
Copy link
Member

@giggio giggio commented Oct 16, 2015

Bug confirmed. It should be pulled into the master branch.

@jwooley
Copy link
Contributor

@jwooley jwooley commented Oct 16, 2015

It looks like we have 3 open bugs for CC0014 in VB at this point. I can take them unless @filippobottega wants to try his hand.

@giggio
Copy link
Member

@giggio giggio commented Oct 16, 2015

@filippobottega do you?

@filippobottega
Copy link
Author

@filippobottega filippobottega commented Oct 16, 2015

Really sorry but I'm only a tester for the moment...

@giggio
Copy link
Member

@giggio giggio commented Oct 16, 2015

So, it is yours, @jwooley, I am assigning all 3 to you, I guess you will submit one PR for all 3, right?

@giggio giggio modified the milestones: 1.0.0-rc4, 1.0.0 Nov 2, 2015
jwooley added a commit to jwooley/code-cracker that referenced this issue Nov 4, 2015
@jwooley
Copy link
Contributor

@jwooley jwooley commented Nov 4, 2015

Fixed all 3 issues in changesets 2b5e919 and 0f2fb83. Having issues with rebase and pull requests with cherry picking. Let's work together at the hackathon to help me get git.

@giggio
Copy link
Member

@giggio giggio commented Nov 5, 2015

@jwooley Sure! ;)

@jwooley jwooley mentioned this issue Nov 5, 2015
Merged
@giggio giggio closed this in a46aefa Nov 7, 2015
giggio added a commit that referenced this issue Nov 7, 2015
Fix ternary operators for VB

Fixes #550
Fixes #551
Fixes #552
@giggio giggio added 3 - Done and removed 2 - Working labels Nov 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.