Skip to content

Commit 4c45c5d

Browse files
committed
Added AnalyzerReleases for SampleGen and TestGen Diagnostics
1 parent 2ee7181 commit 4c45c5d

File tree

7 files changed

+47
-1
lines changed

7 files changed

+47
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
; Shipped analyzer releases
2+
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; Unshipped analyzer release
2+
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+
4+
### New Rules
5+
6+
Rule ID | Category | Severity | Notes
7+
--------|----------|----------|-------
8+
TKSMPL0001 | Usage | Error | DiagnosticDescriptors
9+
TKSMPL0002 | Usage | Error | DiagnosticDescriptors
10+
TKSMPL0003 | Usage | Error | DiagnosticDescriptors
11+
TKSMPL0004 | Usage | Error | DiagnosticDescriptors
12+
TKSMPL0005 | Usage | Error | DiagnosticDescriptors
13+
TKSMPL0006 | Usage | Error | DiagnosticDescriptors
14+
TKSMPL0007 | Usage | Error | DiagnosticDescriptors
15+
TKSMPL0008 | Usage | Error | DiagnosticDescriptors
16+
TKSMPL0009 | Usage | Error | DiagnosticDescriptors
17+
TKSMPL0010 | Usage | Error | DiagnosticDescriptors
18+
TKSMPL0011 | Usage | Error | DiagnosticDescriptors
19+
TKSMPL0012 | Usage | Error | DiagnosticDescriptors
20+
TKSMPL0013 | Usage | Warning | DiagnosticDescriptors
21+
TKSMPL0014 | Usage | Warning | DiagnosticDescriptors
22+
TKSMPL0015 | Usage | Error | DiagnosticDescriptors

CommunityToolkit.Tooling.SampleGen/CommunityToolkit.Tooling.SampleGen.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@
1616
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
1717
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
1818
</ItemGroup>
19+
20+
<ItemGroup>
21+
<SlnGenSolutionItem Remove="AnalyzerReleases.Shipped.md" />
22+
<SlnGenSolutionItem Remove="AnalyzerReleases.Unshipped.md" />
23+
</ItemGroup>
1924
</Project>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
; Shipped analyzer releases
2+
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
; Unshipped analyzer release
2+
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+
4+
### New Rules
5+
6+
Rule ID | Category | Severity | Notes
7+
--------|----------|----------|-------
8+
LUITM0001 | Usage | Error | DiagnosticDescriptors

CommunityToolkit.Tooling.TestGen/CommunityToolkit.Tooling.TestGen.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@
1616
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
1717
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
1818
</ItemGroup>
19+
20+
<ItemGroup>
21+
<SlnGenSolutionItem Remove="AnalyzerReleases.Shipped.md" />
22+
<SlnGenSolutionItem Remove="AnalyzerReleases.Unshipped.md" />
23+
</ItemGroup>
1924
</Project>

CommunityToolkit.Tooling.TestGen/Diagnostics/DiagnosticDescriptors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class DiagnosticDescriptors
1919
/// </summary>
2020
public static readonly DiagnosticDescriptor TestControlHasConstructorWithParameters = new(
2121
id: "LUITM0001",
22-
title: "Provided control must not have a constructor with parameters.",
22+
title: "Provided control must not have a constructor with parameters",
2323
messageFormat: "Cannot generate test with control {{0}} as it has a constructor with parameters",
2424
category: typeof(UIThreadTestMethodGenerator).FullName,
2525
defaultSeverity: DiagnosticSeverity.Error,

0 commit comments

Comments
 (0)