Regard SA1512 definition of "single-line comment"

Feb 3, 2012 at 12:34 AM

In StyleCop 4.7 the last line of a multi-line comment is being flagged as an error by StyleCop if a blank line follows it. This rule says that a "single-line comment" should not be followed by a blank line. For example if I have:

            // The best method ever!
            // Really! I wouldn't kid you.

and a blank line after the second, the second line above is flagged.

Is that line a "single-line comment"?


Feb 4, 2012 at 4:58 PM


A multiline comment is like:




Feb 10, 2012 at 2:18 AM

Ahhh. Thanks for the explanation.