c# - How to break up regular comments into paragraphs while keeping StyleCop happy? -


Sometimes a long comment is required; This can happen when a disturbance hack that requires long explanation is. Yes, it is better to fix / fix hacks, but often time is pressurized and it has to be pushed forward in the future. If this is the case, then making a detailed comment is very helpful, which would be replacing the hack with better code. The key would be to ensure that they understand what the hack is doing and why.

Often, many paragraphs are required if the comments like // comment were allowed, the comment would be more readable. However, StyleCop does not like those people, and we agree with it, so we try to stick with all of our suggestions. Now, I can think of three options:

  //// This is a hack ... //// ................ ..//////// to hack this hack When deciding on ... //// ........................... ........  

(I do not like for the first time because I usually use double / triple / quadruple comments for comments of sections of code I'm sorry).

// This is a hack ... // .................. //// & lt; == It will slide, but I think it looks dumb // After deciding this hack, make sure that ... // .................... ...............

(I do not like the second option; I think this looks dumb)

  // & lt; Paragraph & gt; // This is a hack ... // .................. // & lt; / Paragraph & gt; // & lt; Paragraph & gt; // After deciding this hack, make sure that ... // .................................. // & lt; / Paragraph & gt;  

(I do not like the third option too. It is suitable for the /// method documentation, but here it is an out-of-the- P>

Please suggest a better way.

/ *
make me any time For a long comment has been received, regardless of the reason, I use the "slashterix" block comment style.

Always works for me.
YMMV, but this is my The best suggestion is 8)
* /

< / Html>

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -