Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.33 KB

DOC108.md

File metadata and controls

58 lines (47 loc) · 1.33 KB

DOC108

TypeName DOC108AvoidEmptyParagraphs
CheckId DOC108
Category Style Rules

Cause

The documentation contains an empty paragraph element (<para/> or <p/>) used as a paragraph separator.

Rule description

A violation of this rule occurs when a <para/> or <p/> is used as a paragraph separator. Rather than place an empty paragraph element between paragraphs, the text content of paragraphs should be contained in the <para> element.

/// <summary>Summary text.</summary>
/// <remarks>
/// Remarks text.
/// <para/>
/// Second paragraph of remarks, which is not placed inside the &lt;para&gt; element.
/// </remarks>
public void SomeOperation()
{
}

How to fix violations

To fix a violation of this rule, update the comment so the <para> element wraps the documentation text which follows it:

/// <summary>Summary text.</summary>
/// <remarks>
/// Remarks text.
/// <para>Second paragraph of remarks, which is now placed inside the &lt;para&gt; element.</para>
/// </remarks>
public void SomeOperation()
{
}

How to suppress violations

Do not suppress violations of this rule. If the preferred documentation style does not align with the rule decription, it is best to disable the rule.