Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (30 sloc) 1.1 KB

SA1020

TypeName SA1020IncrementDecrementSymbolsMustBeSpacedCorrectly
CheckId SA1020
Category Spacing Rules

Cause

An increment or decrement symbol within a C# element is not spaced correctly.

Rule description

A violation of this rule occurs when the spacing around an increment or decrement symbol is not correct.

There should be no whitespace between the increment or decrement symbol and the item that is being incremented or decremented.

How to fix violations

To fix a violation of this rule, ensure that there is no whitespace between the increment or decrement symbol and the item that is being incremented or decremented.

How to suppress violations

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