You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CC0013 behaves in the exact same (incorrect) way as CC0014.
As noted on other VB ternary operator fix issues, true and false comments should not be combined, since each comment almost always only apply to one of the branches.
If 'fixing the fix' properly is non-trivial, I would suggest not creating any fix suggestion at all if there are comments, rather than silently removing them.
The text was updated successfully, but these errors were encountered:
This issue will certainly end up eating users comments, since few will know to look out for it. Doing this silently is... unfortunate. I would still recommend making CC0014 hidden until this issue is addressed.
Bug
C# CC0013 and CC0014 ternary operator fixes remove comments in code-cracker v1.0.3.
This CC0014 code:
Currently becomes this after fix applied:
And this code:
Currently becomes this after fix applied:
Expected output in both above cases after fix applied:
CC0013 behaves in the exact same (incorrect) way as CC0014.
As noted on other VB ternary operator fix issues, true and false comments should not be combined, since each comment almost always only apply to one of the branches.
If 'fixing the fix' properly is non-trivial, I would suggest not creating any fix suggestion at all if there are comments, rather than silently removing them.
The text was updated successfully, but these errors were encountered: