Skip to content

Commit 359e0ab

Browse files
authored
Merge pull request #562 from CommunityToolkit/dev/analyzer-diagnostics-fixes
Fix diagnostic analyzer documentation/title
2 parents 399bf42 + 03af505 commit 359e0ab

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/CommunityToolkit.Mvvm.SourceGenerators/AnalyzerReleases.Shipped.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ MVVMTK0028 | CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator
3838
MVVMTK0029 | CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator | Warning | See https://aka.ms/mvvmtoolkit/errors/mvvmtk0029
3939
MVVMTK0030 | CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator | Warning | See https://aka.ms/mvvmtoolkit/errors/mvvmtk0030
4040
MVVMTK0031 | CommunityToolkit.Mvvm.SourceGenerators.RelayCommandGenerator | Error | See https://aka.ms/mvvmtoolkit/errors/mvvmtk0031
41+
42+
## Release 8.1
43+
44+
### New Rules
45+
46+
Rule ID | Category | Severity | Notes
47+
--------|----------|----------|-------
4148
MVVMTK0032 | CommunityToolkit.Mvvm.SourceGenerators.INotifyPropertyChangedGenerator | Warning | See https://aka.ms/mvvmtoolkit/errors/mvvmtk0032
4249
MVVMTK0033 | CommunityToolkit.Mvvm.SourceGenerators.ObservableObjectGenerator | Warning | See https://aka.ms/mvvmtoolkit/errors/mvvmtk0033
4350
MVVMTK0034 | CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator | Warning | See https://aka.ms/mvvmtoolkit/errors/mvvmtk0034

src/CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ internal static class DiagnosticDescriptors
551551
/// </summary>
552552
public static readonly DiagnosticDescriptor FieldReferenceForObservablePropertyFieldWarning = new DiagnosticDescriptor(
553553
id: "MVVMTK0034",
554-
title: "Invalid task scheduler exception flow option usage",
554+
title: "Direct field reference to [ObservableProperty] backing field",
555555
messageFormat: "The field {0} is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead)",
556556
category: typeof(ObservablePropertyGenerator).FullName,
557557
defaultSeverity: DiagnosticSeverity.Warning,

0 commit comments

Comments
 (0)