Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 801 Bytes

SA1120.md

File metadata and controls

39 lines (29 loc) · 801 Bytes

SA1120

TypeName SA1120CommentsMustContainText
CheckId SA1120
Category Readability Rules

Cause

The C# comment does not contain any comment text.

Rule description

A violation of this rule occurs whenever the code contains a C# comment which does not contain any text.

How to fix violations

To fix a violation of this rule, add text to the comment, or remove the comment.

How to suppress violations

[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1120:CommentsMustContainText", Justification = "Reviewed.")]
#pragma warning disable SA1120 // CommentsMustContainText
#pragma warning restore SA1120 // CommentsMustContainText