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

Fix SA1512 blank line reported between single line comment and documentation comment #1149

Merged
merged 2 commits into from
Aug 8, 2015

Conversation

@Noryoko
Copy link
Contributor Author

Noryoko commented Aug 7, 2015

@oatkins In testing I found that classic StyleCop allows a blank line between a single line comment and a multi-line comment. Can you double check this?

@oatkins
Copy link
Contributor

oatkins commented Aug 7, 2015

@Noryoko Yes. In fact the following is legal:

// Something in advance.

// Another comment.

/* 
 * And another/
 */

/// <summary>The YetMore class.</summary>
/* Multi-line comment
 * 
 */
public static class YetMore { }

@sharwell sharwell added this to the 1.0.0 Beta 5 milestone Aug 8, 2015
@sharwell sharwell self-assigned this Aug 8, 2015
sharwell added a commit that referenced this pull request Aug 8, 2015
Fix SA1512 blank line reported between single line comment and documentation comment
@sharwell sharwell merged commit f66d9ab into DotNetAnalyzers:master Aug 8, 2015
@Noryoko Noryoko deleted the fix-1130 branch August 8, 2015 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants