Skip to content

Commit 197e7bd

Browse files
committed
Updated .gitignore; made some small fixes.
1 parent b09bc63 commit 197e7bd

5 files changed

+16
-1116
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ packages
88
*.user
99
*.orig
1010
*_actual.txt
11-
Robotmaster.Rise.Test/Cells/cell_Kr60_Maka_proc/
11+
*.xml

DotNet.SystemCollections.Analyzers/Arrays/DoNotHaveFieldOfArrayTypeAnalyzer.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ public class DoNotHaveFieldOfArrayTypeAnalyzer : DiagnosticAnalyzer
1717
/// </summary>
1818
public static readonly string DiagnosticId = AnalyzerHelper.GetCompleteAnalyzerId(IdNumber);
1919

20+
/// <summary>
21+
/// The message format to use for diagnostics generated by this analyzer.
22+
/// </summary>
23+
internal const string MessageFormat = "The {0} field has a type of an Array instead of an IReadOnlyList.";
24+
2025
/// <summary>
2126
/// The rule (i.e. <see cref="DiagnosticDescriptor"/>) handled by this analyzer.
2227
/// </summary>
2328
#pragma warning disable RS1017 // DiagnosticId for analyzers must be a non-null constant.
2429
internal static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, AnalyzerHelper.AnalyzerTitle, MessageFormat, AnalyzerCategory.Arrays, DiagnosticSeverity.Warning, true, Description);
2530
#pragma warning restore RS1017 // DiagnosticId for analyzers must be a non-null constant.
2631

27-
/// <summary>
28-
/// The message format to use for diagnostics generated by this analyzer.
29-
/// </summary>
30-
private const string MessageFormat = "The {0} field has a type of an Array instead of an IReadOnlyList.";
31-
3232
/// <summary>
3333
/// The description to use for diagnostics generated by this analyzer.
3434
/// </summary>

DotNet.SystemCollections.Analyzers/Arrays/DoNotHaveMethodReturnArrayTypeAnalyzer.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ public class DoNotHaveMethodReturnArrayTypeAnalyzer : DiagnosticAnalyzer
1919
/// </summary>
2020
public static readonly string DiagnosticId = AnalyzerHelper.GetCompleteAnalyzerId(IdNumber);
2121

22+
/// <summary>
23+
/// The message format to use for diagnostics generated by this analyzer.
24+
/// </summary>
25+
internal const string MessageFormat = "The {0} method returned an Array instead of an IReadOnlyList.";
26+
2227
/// <summary>
2328
/// The rule (i.e. <see cref="DiagnosticDescriptor"/>) handled by this analyzer.
2429
/// </summary>
2530
#pragma warning disable RS1017 // DiagnosticId for analyzers must be a non-null constant.
2631
internal static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, AnalyzerHelper.AnalyzerTitle, MessageFormat, AnalyzerCategory.Arrays, DiagnosticSeverity.Warning, true, Description);
2732
#pragma warning restore RS1017 // DiagnosticId for analyzers must be a non-null constant.
2833

29-
/// <summary>
30-
/// The message format to use for diagnostics generated by this analyzer.
31-
/// </summary>
32-
private const string MessageFormat = "The {0} method returned an Array instead of an IReadOnlyList.";
33-
3434
/// <summary>
3535
/// The description to use for diagnostics generated by this analyzer.
3636
/// </summary>

DotNet.SystemCollections.Analyzers/Arrays/DoNotHavePropertyOfArrayTypeAnalyzer.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ public class DoNotHavePropertyOfArrayTypeAnalyzer : DiagnosticAnalyzer
1717
/// </summary>
1818
public static readonly string DiagnosticId = AnalyzerHelper.GetCompleteAnalyzerId(IdNumber);
1919

20+
/// <summary>
21+
/// The message format to use for diagnostics generated by this analyzer.
22+
/// </summary>
23+
internal const string MessageFormat = "The {0} property has a type of an Array instead of an IReadOnlyList.";
24+
2025
/// <summary>
2126
/// The rule (i.e. <see cref="DiagnosticDescriptor"/>) handled by this analyzer.
2227
/// </summary>
2328
#pragma warning disable RS1017 // DiagnosticId for analyzers must be a non-null constant.
2429
internal static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, AnalyzerHelper.AnalyzerTitle, MessageFormat, AnalyzerCategory.Arrays, DiagnosticSeverity.Warning, true, Description);
2530
#pragma warning restore RS1017 // DiagnosticId for analyzers must be a non-null constant.
2631

27-
/// <summary>
28-
/// The message format to use for diagnostics generated by this analyzer.
29-
/// </summary>
30-
private const string MessageFormat = "The {0} property has a type of an Array instead of an IReadOnlyList.";
31-
3232
/// <summary>
3333
/// The description to use for diagnostics generated by this analyzer.
3434
/// </summary>

0 commit comments

Comments
 (0)