Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1019 Bytes

SA1025.md

File metadata and controls

40 lines (30 loc) · 1019 Bytes

SA1025

TypeName SA1025CodeMustNotContainMultipleWhitespaceInARow
CheckId SA1025
Category Spacing Rules

Cause

The code contains multiple whitespace characters in a row.

Rule description

A violation of this rule occurs whenever the code contains multiple whitespace characters in a row, unless the characters come at the beginning or end of a line of code, following a comma or semicolon or preceding a symbol.

How to fix violations

To fix a violation of this rule, remove the extra whitespace characters are leave only a single space.

How to suppress violations

[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1025:CodeMustNotContainMultipleWhitespaceInARow", Justification = "Reviewed.")]
#pragma warning disable SA1025 // CodeMustNotContainMultipleWhitespaceInARow
#pragma warning restore SA1025 // CodeMustNotContainMultipleWhitespaceInARow