-
Notifications
You must be signed in to change notification settings - Fork 23
SA1610
TypeName |
PropertyDocumentationMustHaveValueText |
CheckId |
SA1610 |
Category |
Documentation Rules |
The Xml header documentation for a C# property contains an empty <value> tag.
C# syntax provides a mechanism for inserting documentation for classes and elements directly into the code, through the use of Xml documentation headers. For an introduction to these headers and a description of the header syntax, see the following article: http://msdn.microsoft.com/en-us/magazine/cc302121.aspx.
The documentation for properties may include a <value> tag, which describes the value held by the property.
A violation of this rule occurs when the <value> tag for a property is empty.
To fix a violation of this rule, fill-in a description of the value held by the property within the <value> tag.
Example:
The following example shows a property which contains a <value> tag within its documentation header.
/// <summary>
/// Gets the name of the customer.
/// </summary>
/// <value>The name of the customer.</value>
public bool Name
{
get { return this.name; }
}
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1610:PropertyDocumentationMustHaveValueText", 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