Table of Contents

SA1025: Code should not contain multiple whitespace in a row

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, or following a comma or semicolon.

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