TypeName | SA1010OpeningSquareBracketsMustBeSpacedCorrectly |
CheckId | SA1010 |
Category | Spacing Rules |
An opening square bracket within a C# statement is not spaced correctly.
A violation of this rule occurs when an opening square bracket within a statement is preceded or followed by whitespace.
An opening square bracket should never be preceded by whitespace, unless it is the first character on the line, and an opening square should never be followed by whitespace, unless it is the last character on the line.
To fix a violation of this rule, ensure that there is no whitespace on either side of the opening square bracket.
[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1010:OpeningSquareBracketsMustBeSpacedCorrectly", Justification = "Reviewed.")]
#pragma warning disable SA1010 // OpeningSquareBracketsMustBeSpacedCorrectly
#pragma warning restore SA1010 // OpeningSquareBracketsMustBeSpacedCorrectly