-
Notifications
You must be signed in to change notification settings - Fork 23
SA1004
TypeName |
DocumentationLinesMustBeginWithSingleSpace |
CheckId |
SA1004 |
Category |
Spacing Rules |
A line within a documentation header above a C# element does not begin with a single space.
A violation of this rule occurs when a line within a documentation header does not begin with a single space. For example:
///<summary>
///The summary text.
///</summary>
/// <param name="x">The document root.</param>
/// <param name="y">The Xml header token.</param>
private void Method1(int x, int y)
{
}
The header lines should begin with a single space after the three leading forward slashes:
/// <summary>
/// The summary text.
/// </summary>
/// <param name="x">The document root.</param>
/// <param name="y">The Xml header token.</param>
private void Method1(int x, int y)
{
}
To fix a violation of this rule, ensure that the header line begins with a single space.
[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1004:DocumentationLinesMustBeginWithSingleSpace", Justification = "Reviewed.")]
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop