Skip to content
ptittof57 edited this page Aug 15, 2015 · 5 revisions
<title>SA1004: DocumentationLinesMustBeginWithSingleSpace</title> <script src="script/helpstudio.js" type="text/jscript"></script> <script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript">WritePageTop(document.title);</script>

TypeName

DocumentationLinesMustBeginWithSingleSpace

CheckId

SA1004

Category

Spacing Rules

Cause

A line within a documentation header above a C# element does not begin with a single space.

Rule Description

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)

{

}

How to Fix Violations

To fix a violation of this rule, ensure that the header line begins with a single space.

How to Suppress Violations

[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1004:DocumentationLinesMustBeginWithSingleSpace", Justification = "Reviewed.")]
<script type="text/javascript">WritePageFooter();</script>
Clone this wiki locally