Hello,
I know it sounds like a joke, but:
When using CodeCleanup with option remove all comments, excluding XML comments (in a VB project)
Does it make sense to remove task based comments in a method? They are removed…
( you can't use XML comments in a method, so there would be no possibility for comments in methods at all…)
Also I thought at least comments at the end of a line should not be removed (?) I found a ticked which I don't find anymore with a fix for that (in version 17 something as far as I remember…?)
Thanks a lot,
Franz
Edit: the ticket I didn't find before is: T538172
As the ticket T538172 was probably targeting another issue and I also saw a request for 'detect commented out code' I think I should change this in a feature request:
Actually I would love to remove many of commented out code in an old project but keep all task based comments.
So far I didn't find a possibility to do this with the CodeCleanup feature.
Thanks again,
Franz
Hi Franz,
Thank you for pointing out this issue. We agree that the "Remove all comments" rule should not affect on task based comments. We are working to correct it.
As for the ticket that you mention, it related to the "Convert to string.Empty" rule. So, the Code Cleanup removes comments at the end of a line if the "Remove all comments" rule is enabled. We don't plan to change this behavior.