Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 854 Bytes

SA1106.md

File metadata and controls

39 lines (29 loc) · 854 Bytes

SA1106

TypeName SA1106CodeMustNotContainEmptyStatements
CheckId SA1106
Category Readability Rules

Cause

The C# code contains an extra semicolon.

Rule description

A violation of this rule occurs when the code contain an extra semicolon. Syntactically, this results in an extra, empty statement in the code.

How to fix violations

To fix a violation of this rule, remove the unneeded semicolon.

How to suppress violations

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