SA1025.md

January 2, 2024 ยท View on GitHub

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, 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