Skip to content

Commit 0bbbad1

Browse files
committed
Update AnalyzerReleases.Unshipped.md for the 1.2 release
1 parent 0a190fa commit 0bbbad1

7 files changed

Lines changed: 45 additions & 18 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
; Unshipped analyzer release
22
; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
33

4+
### New Rules
5+
6+
Rule ID | Category | Severity | Notes
7+
--------|----------|----------|-------
8+
SA1141 | StyleCop.CSharp.ReadabilityRules | Warning | SA1141UseTupleSyntax, [Documentation](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1141.md)
9+
SA1142 | StyleCop.CSharp.ReadabilityRules | Warning | SA1142ReferToTupleElementsByName, [Documentation](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1142.md)
10+
SA1316 | StyleCop.CSharp.NamingRules | Warning | SA1316TupleElementNamesShouldUseCorrectCasing, [Documentation](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1316.md)
11+
SA1414 | StyleCop.CSharp.ReadabilityRules | Warning | SA1414TupleTypesInSignaturesShouldHaveElementNames, [Documentation](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1414.md)
12+
SA1518 | StyleCop.CSharp.LayoutRules | Warning | SA1518UseLineEndingsCorrectlyAtEndOfFile, [Documentation](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md)
13+
14+
### Changed Rules
15+
16+
Rule ID | New Category | New Severity | Old Category | Old Severity | Notes
17+
--------|--------------|--------------|--------------|--------------|-------
18+
SA1413 | StyleCop.CSharp.MaintainabilityRules | Warning | StyleCop.CSharp.ReadabilityRules | Warning | SA1413UseTrailingCommasInMultiLineInitializers, [Documentation](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1413.md)

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1009ClosingParenthesisMustBeSpacedCorrectly.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ internal class SA1009ClosingParenthesisMustBeSpacedCorrectly : DiagnosticAnalyze
4444

4545
private static readonly Action<SyntaxTreeAnalysisContext> SyntaxTreeAction = HandleSyntaxTree;
4646

47-
public static DiagnosticDescriptor DescriptorNotPreceded { get; } =
47+
#pragma warning disable SA1202 // Elements should be ordered by access
48+
internal static readonly DiagnosticDescriptor DescriptorNotPreceded =
4849
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotPreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
4950

50-
public static DiagnosticDescriptor DescriptorNotFollowed { get; } =
51+
internal static readonly DiagnosticDescriptor DescriptorNotFollowed =
5152
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
5253

53-
public static DiagnosticDescriptor DescriptorFollowed { get; } =
54+
internal static readonly DiagnosticDescriptor DescriptorFollowed =
5455
new DiagnosticDescriptor(DiagnosticId, Title, MessageFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
56+
#pragma warning restore SA1202 // Elements should be ordered by access
5557

5658
/// <inheritdoc/>
5759
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1010OpeningSquareBracketsMustBeSpacedCorrectly.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ internal class SA1010OpeningSquareBracketsMustBeSpacedCorrectly : DiagnosticAnal
3838

3939
private static readonly Action<SyntaxTreeAnalysisContext> SyntaxTreeAction = HandleSyntaxTree;
4040

41-
public static DiagnosticDescriptor DescriptorNotPreceded { get; } =
41+
#pragma warning disable SA1202 // Elements should be ordered by access
42+
internal static readonly DiagnosticDescriptor DescriptorNotPreceded =
4243
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotPreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
4344

44-
public static DiagnosticDescriptor DescriptorNotFollowed { get; } =
45+
internal static readonly DiagnosticDescriptor DescriptorNotFollowed =
4546
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
47+
#pragma warning restore SA1202 // Elements should be ordered by access
4648

4749
/// <inheritdoc/>
4850
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1015ClosingGenericBracketsMustBeSpacedCorrectly.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ internal class SA1015ClosingGenericBracketsMustBeSpacedCorrectly : DiagnosticAna
4040

4141
private static readonly Action<SyntaxTreeAnalysisContext> SyntaxTreeAction = HandleSyntaxTree;
4242

43-
public static DiagnosticDescriptor DescriptorNotPreceded { get; } =
43+
#pragma warning disable SA1202 // Elements should be ordered by access
44+
internal static readonly DiagnosticDescriptor DescriptorNotPreceded =
4445
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotPreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
4546

46-
public static DiagnosticDescriptor DescriptorNotFollowed { get; } =
47+
internal static readonly DiagnosticDescriptor DescriptorNotFollowed =
4748
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
4849

49-
public static DiagnosticDescriptor DescriptorFollowed { get; } =
50+
internal static readonly DiagnosticDescriptor DescriptorFollowed =
5051
new DiagnosticDescriptor(DiagnosticId, Title, MessageFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
52+
#pragma warning restore SA1202 // Elements should be ordered by access
5153

5254
/// <inheritdoc/>
5355
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1019MemberAccessSymbolsMustBeSpacedCorrectly.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ internal class SA1019MemberAccessSymbolsMustBeSpacedCorrectly : DiagnosticAnalyz
3434

3535
private static readonly Action<SyntaxTreeAnalysisContext> SyntaxTreeAction = HandleSyntaxTree;
3636

37-
public static DiagnosticDescriptor DescriptorNotPreceded { get; } =
37+
#pragma warning disable SA1202 // Elements should be ordered by access
38+
internal static readonly DiagnosticDescriptor DescriptorNotPreceded =
3839
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotPreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
3940

40-
public static DiagnosticDescriptor DescriptorNotFollowed { get; } =
41+
internal static readonly DiagnosticDescriptor DescriptorNotFollowed =
4142
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
43+
#pragma warning restore SA1202 // Elements should be ordered by access
4244

4345
/// <inheritdoc/>
4446
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1023DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,22 @@ internal class SA1023DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly : Diagno
5858

5959
private static readonly Action<SyntaxTreeAnalysisContext> SyntaxTreeAction = HandleSyntaxTree;
6060

61-
public static DiagnosticDescriptor DescriptorNotPreceded { get; } =
61+
#pragma warning disable SA1202 // Elements should be ordered by access
62+
internal static readonly DiagnosticDescriptor DescriptorNotPreceded =
6263
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotPreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
6364

64-
public static DiagnosticDescriptor DescriptorNotFollowed { get; } =
65+
internal static readonly DiagnosticDescriptor DescriptorNotFollowed =
6566
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
6667

67-
public static DiagnosticDescriptor DescriptorFollowed { get; } =
68+
internal static readonly DiagnosticDescriptor DescriptorFollowed =
6869
new DiagnosticDescriptor(DiagnosticId, Title, MessageFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
6970

70-
public static DiagnosticDescriptor DescriptorNotAtBeginningOfLine { get; } =
71+
internal static readonly DiagnosticDescriptor DescriptorNotAtBeginningOfLine =
7172
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotAtBeginningOfLine, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
7273

73-
public static DiagnosticDescriptor DescriptorNotAtEndOfLine { get; } =
74+
internal static readonly DiagnosticDescriptor DescriptorNotAtEndOfLine =
7475
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotAtEndOfLine, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
76+
#pragma warning restore SA1202 // Elements should be ordered by access
7577

7678
/// <inheritdoc/>
7779
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1024ColonsMustBeSpacedCorrectly.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ internal class SA1024ColonsMustBeSpacedCorrectly : DiagnosticAnalyzer
7474

7575
private static readonly Action<SyntaxTreeAnalysisContext> SyntaxTreeAction = HandleSyntaxTree;
7676

77-
public static DiagnosticDescriptor DescriptorNotPreceded { get; } =
77+
#pragma warning disable SA1202 // Elements should be ordered by access
78+
internal static readonly DiagnosticDescriptor DescriptorNotPreceded =
7879
new DiagnosticDescriptor(DiagnosticId, Title, MessageNotPreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
7980

80-
public static DiagnosticDescriptor DescriptorPreceded { get; } =
81+
internal static readonly DiagnosticDescriptor DescriptorPreceded =
8182
new DiagnosticDescriptor(DiagnosticId, Title, MessagePreceded, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
8283

83-
public static DiagnosticDescriptor DescriptorFollowed { get; } =
84+
internal static readonly DiagnosticDescriptor DescriptorFollowed =
8485
new DiagnosticDescriptor(DiagnosticId, Title, MessageFollowed, AnalyzerCategory.SpacingRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
86+
#pragma warning restore SA1202 // Elements should be ordered by access
8587

8688
/// <inheritdoc/>
8789
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =

0 commit comments

Comments
 (0)