DocumentationRules.md

February 11, 2016 ยท View on GitHub

Documentation Rules (SA1600-)

Rules which verify the content and formatting of code documentation.

IdentifierNameDescription
SA1600ElementsMustBeDocumentedA C# code element is missing a documentation header.
SA1601PartialElementsMustBeDocumentedA C# partial element is missing a documentation header.
SA1602EnumerationItemsMustBeDocumentedAn item within a C# enumeration is missing an Xml documentation header.
SA1603DocumentationMustContainValidXmlThe Xml within a C# element's document header is badly formed.
SA1604ElementDocumentationMustHaveSummaryThe Xml header documentation for a C# element is missing a <summary> tag.
SA1605PartialElementDocumentationMustHaveSummaryThe <summary> or <content> tag within the documentation header for a C# code element is missing or empty.
SA1606ElementDocumentationMustHaveSummaryTextThe <summary> tag within the documentation header for a C# code element is empty.
SA1607PartialElementDocumentationMustHaveSummaryTextThe <summary> or <content> tag within the documentation header for a C# code element is empty.
SA1608ElementDocumentationMustNotHaveDefaultSummaryThe <summary> tag within an element's Xml header documentation contains the default text generated by Visual Studio during the creation of the element.
SA1609PropertyDocumentationMustHaveValueThe Xml header documentation for a C# property does not contain a <value> tag.
SA1610PropertyDocumentationMustHaveValueTextThe Xml header documentation for a C# property contains an empty <value> tag.
SA1611ElementParametersMustBeDocumentedA C# method, constructor, delegate or indexer element is missing documentation for one or more of its parameters.
SA1612ElementParameterDocumentationMustMatchElementParametersThe documentation describing the parameters to a C# method, constructor, delegate or indexer element does not match the actual parameters on the element.
SA1613ElementParameterDocumentationMustDeclareParameterNameA <param> tag within a C# element's documentation header is missing a name attribute containing the name of the parameter.
SA1614ElementParameterDocumentationMustHaveTextA <param> tag within a C# element's documentation header is empty.
SA1615ElementReturnValueMustBeDocumentedA C# element is missing documentation for its return value.
SA1616ElementReturnValueDocumentationMustHaveTextThe <returns> tag within a C# element's documentation header is empty.
SA1617VoidReturnValueMustNotBeDocumentedA C# code element does not contain a return value, or returns void, but the documentation header for the element contains a <returns> tag.
SA1618GenericTypeParametersMustBeDocumentedA generic C# element is missing documentation for one or more of its generic type parameters.
SA1619GenericTypeParametersMustBeDocumentedPartialClassA generic, partial C# element is missing documentation for one or more of its generic type parameters, and the documentation for the element contains a <summary> tag.
SA1620GenericTypeParameterDocumentationMustMatchTypeParametersThe <typeparam> tags within the Xml header documentation for a generic C# element do not match the generic type parameters on the element.
SA1621GenericTypeParameterDocumentationMustDeclareParameterNameA <typeparam> tag within the Xml header documentation for a generic C# element is missing a name attribute, or contains an empty name attribute.
SA1622GenericTypeParameterDocumentationMustHaveTextA <typeparam> tag within the Xml header documentation for a generic C# element is empty.
SA1623PropertySummaryDocumentationMustMatchAccessorsThe documentation text within a C# property's <summary> tag does not match the accessors within the property.
SA1624PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccessThe documentation text within a C# property's <summary> tag takes into account all of the accessors within the property, but one of the accessors has limited access.
SA1625ElementDocumentationMustNotBeCopiedAndPastedThe Xml documentation for a C# element contains two or more identical entries, indicating that the documentation has been copied and pasted.
SA1626SingleLineCommentsMustNotUseDocumentationStyleSlashesThe C# code contains a single-line comment which begins with three forward slashes in a row.
SA1627DocumentationTextMustNotBeEmptyThe Xml header documentation for a C# code element contains an empty tag.
SA1628DocumentationTextMustBeginWithACapitalLetterA section of the Xml header documentation for a C# element does not begin with a capital letter.
SA1629DocumentationTextMustEndWithAPeriodA section of the Xml header documentation for a C# element does not end with a period (also known as a full stop).
SA1630DocumentationTextMustContainWhitespaceA section of the Xml header documentation for a C# element does not contain any whitespace between words.
SA1631DocumentationMustMeetCharacterPercentageA section of the Xml header documentation for a C# element does not contain enough alphabetic characters.
SA1632DocumentationTextMustMeetMinimumCharacterLengthFrom StyleCop 4.5 this rule is disabled by default.
SA1633FileMustHaveHeaderA C# code file is missing a standard file header.
SA1634FileHeaderMustShowCopyrightThe file header at the top of a C# code file is missing a copyright tag.
SA1635FileHeaderMustHaveCopyrightTextThe file header at the top of a C# code file is missing copyright text.
SA1636FileHeaderCopyrightTextMustMatchThe file header at the top of a C# code file does not contain the appropriate copyright text.
SA1637FileHeaderMustContainFileNameThe file header at the top of a C# code file is missing the file name.
SA1638FileHeaderFileNameDocumentationMustMatchFileNameThe file tag within the file header at the top of a C# code file does not contain the name of the file.
SA1639FileHeaderMustHaveSummaryThe file header at the top of a C# code file does not contain a filled-in summary tag.
SA1640FileHeaderMustHaveValidCompanyTextThe file header at the top of a C# code file does not contain company name text.
SA1641FileHeaderCompanyNameTextMustMatchThe file header at the top of a C# code file does not contain the appropriate company name text.
SA1642ConstructorSummaryDocumentationMustBeginWithStandardTextThe XML documentation header for a C# constructor does not contain the appropriate summary text.
SA1643DestructorSummaryDocumentationMustBeginWithStandardTextThe Xml documentation header for a C# finalizer does not contain the appropriate summary text.
SA1644DocumentationHeadersMustNotContainBlankLinesA section within the Xml documentation header for a C# element contains blank lines.
SA1645IncludedDocumentationFileDoesNotExistAn included Xml documentation file does not exist.
SA1646IncludedDocumentationXPathDoesNotExistAn included Xml documentation link contains an invalid path.
SA1647IncludeNodeDoesNotContainValidFileAndPathAn include tag within an Xml documentation header does not contain valid file and path attribute.
SA1648InheritDocMustBeUsedWithInheritingClass<inheritdoc> has been used on an element that doesn't inherit from a base class or implement an interface.
SA1649FileNameMustMatchTypeNameThe file name of a C# code file does not match the first type declared in the file.
SA1650ElementDocumentationMustBeSpelledCorrectlyThe element documentation for the element contains one or more spelling mistakes or unrecognized words.
SA1651DoNotUsePlaceholderElementsThe documentation for the element contains one or more <placeholder> elements.
SA1652EnableXmlDocumentationOutputThis rule was moved to SA0001