File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ namespace StyleCop.Analyzers.SpacingRules
1717 /// </summary>
1818 /// <remarks>
1919 /// <para>A violation of this rule occurs whenever the code contains multiple whitespace characters in a row, unless
20- /// the characters come at the beginning or end of a line of code, following a comma or semicolon or preceding a
21- /// symbol.</para>
20+ /// the characters come at the beginning or end of a line of code, or following a comma or semicolon.</para>
2221 /// </remarks>
2322 [ DiagnosticAnalyzer ( LanguageNames . CSharp ) ]
2423 internal class SA1025CodeMustNotContainMultipleWhitespaceInARow : DiagnosticAnalyzer
Original file line number Diff line number Diff line change @@ -123,8 +123,14 @@ StyleCop Classic allowed multiple spaces to precede a comment placed at the end
123123int x ; // comment
124124```
125125
126- StyleCop Analyzers does not currently make an exception to the SA1025 rule for this case, although this decision is
127- still under review.
126+ It also allowed multiple spaces preceding a symbol, such as in the second line of the following code:
127+
128+ ``` csharp
129+ int xyz = 1 ;
130+ int w = 1 ;
131+ ```
132+
133+ StyleCop Analyzers does not currently make an exception to the SA1025 rule for these cases.
128134
129135## Readability Rules
130136
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ The code contains multiple whitespace characters in a row.
2222## Rule description
2323
2424A violation of this rule occurs whenever the code contains multiple whitespace characters in a row, unless the
25- characters come at the beginning or end of a line of code, following a comma or semicolon or preceding a symbol .
25+ characters come at the beginning or end of a line of code, or following a comma or semicolon.
2626
2727## How to fix violations
2828
You can’t perform that action at this time.
0 commit comments