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

SA1017

TypeName SA1017ClosingAttributeBracketsMustBeSpacedCorrectly
CheckId SA1017
Category Spacing Rules

Cause

A closing attribute bracket within a C# element is not spaced correctly.

Rule description

A violation of this rule occurs when the spacing around a closing attribute bracket is not correct.

A closing attribute bracket should never be preceded by whitespace, unless the bracket is the first character on the line.

How to fix violations

To fix a violation of this rule, ensure that there is no whitespace before the closing attribute bracket.

How to suppress violations

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