Skip to content

Commit 2a69ed4

Browse files
committed
Fix SA1134 documentation to correctly describe rule
1 parent 9b14293 commit 2a69ed4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/SA1134AttributesMustNotShareLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace StyleCop.Analyzers.ReadabilityRules
1212
using StyleCop.Analyzers.Helpers;
1313

1414
/// <summary>
15-
/// Two or more attribute appeared on the same line of code.
15+
/// An attribute is placed on the same line of code as another attribute or element.
1616
/// </summary>
1717
[DiagnosticAnalyzer(LanguageNames.CSharp)]
1818
internal class SA1134AttributesMustNotShareLine : DiagnosticAnalyzer

documentation/SA1134.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
## Cause
2121

22-
Two or more attribute appeared on the same line of code.
22+
An attribute is placed on the same line of code as another attribute or element.
2323

2424
## Rule description
2525

26-
A violation of this rule occurs two or more attributes are placed on the same line of code.
26+
A violation of this rule occurs when two more more attributes are placed on the same line of code, or an attribute is placed on the same line of code as another element.
2727

2828
For example, the following code would produce a violation of this rule:
2929

0 commit comments

Comments
 (0)