You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule checks if the project is using an unsupported C# language version. The supported versions are C# 7.3 and above. If the project is using an unsupported version, the rule will raise an error.
6
+
7
+
### RXUISG0002 - ReactiveCommandGenerator
8
+
This rule checks if the `ReactiveCommand` has a Invalid ReactiveCommand method signature.
9
+
10
+
### RXUISG0003 - ReactiveCommandGenerator
11
+
This rule checks if the `ReactiveCommand` has a Invalid ReactiveCommand.CanExecute member name.
12
+
13
+
### RXUISG0004 - ReactiveCommandGenerator
14
+
This rule checks if the `ReactiveCommand` has Multiple ReactiveCommand.CanExecute member name matches.
15
+
16
+
### RXUISG0005 - ReactiveCommandGenerator
17
+
This rule checks if the `ReactiveCommand` has No valid ReactiveCommand.CanExecute member match.
18
+
19
+
### RXUISG0006 - ReactiveCommandGenerator
20
+
This rule checks if the `ReactiveCommand` has Invalid field or property targeted attribute type.
21
+
22
+
### RXUISG0007 - ReactiveCommandGenerator
23
+
This rule checks if the `ReactiveCommand` has Invalid field or property targeted attribute expression.
This rule checks if the `ObservableAsProperty` has Invalid generated property declaration.
54
+
3
55
4
56
## Release 1.0
5
57
6
58
### New Rules
7
59
8
60
Rule ID | Category | Severity | Notes
9
61
--------|----------|----------|-------
10
-
RXUISG0001 | ReactiveUI.SourceGenerators.UnsupportedCSharpLanguageVersionAnalyzer | Error | See https://www.reactiveui.net/errors/RXUISG0001
11
-
RXUISG0002 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0002
12
-
RXUISG0003 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0003
13
-
RXUISG0004 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0004
14
-
RXUISG0005 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0005
15
-
RXUISG0006 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0006
16
-
RXUISG0007 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0007
17
-
RXUISG0008 | ReactiveUI.SourceGenerators.AsyncVoidReturningReactiveCommandMethodAnalyzer | Error | See https://www.reactiveui.net/errors/RXUISG0008
18
-
RXUISG0009 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0009
19
-
RXUISG0010 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0010
20
-
RXUISG0011 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0011
21
-
RXUISG0012 | ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0012
22
-
RXUISG0013 | ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0013
23
-
RXUISG0014 | ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0014
24
-
RXUISG0015 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0015
25
-
RXUISG0016 | ReactiveUI.SourceGenerators.PropertyToReactiveFieldCodeFixProvider | Info | See https://www.reactiveui.net/errors/RXUISG0016
26
-
RXUISG0017 | ReactiveUI.SourceGenerators.ObservableAsPropertyFromObservableGenerator | Error | See https://www.reactiveui.net/errors/RXUISG0017
62
+
RXUISG0001 | ReactiveUI.SourceGenerators.UnsupportedCSharpLanguageVersionAnalyzer | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
63
+
RXUISG0002 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
64
+
RXUISG0003 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
65
+
RXUISG0004 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
66
+
RXUISG0005 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
67
+
RXUISG0006 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
68
+
RXUISG0007 | ReactiveUI.SourceGenerators.ReactiveCommandGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
69
+
RXUISG0008 | ReactiveUI.SourceGenerators.AsyncVoidReturningReactiveCommandMethodAnalyzer | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
70
+
RXUISG0009 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
71
+
RXUISG0010 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
72
+
RXUISG0011 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
73
+
RXUISG0012 | ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
74
+
RXUISG0013 | ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
75
+
RXUISG0014 | ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
76
+
RXUISG0015 | ReactiveUI.SourceGenerators.ReactiveGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
77
+
RXUISG0016 | ReactiveUI.SourceGenerators.PropertyToReactiveFieldCodeFixProvider | Info | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
78
+
RXUISG0017 | ReactiveUI.SourceGenerators.ObservableAsPropertyFromObservableGenerator | Error | See https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
Copy file name to clipboardExpand all lines: src/ReactiveUI.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ internal static class DiagnosticDescriptors
26
26
defaultSeverity:DiagnosticSeverity.Error,
27
27
isEnabledByDefault:true,
28
28
description:"The source generator features from ReactiveUI require consuming projects to set the C# language version to at least C# 9.0. Make sure to add <LangVersion>9.0</LangVersion> (or above) to your .csproj file.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a specified <c>CanExecute</c> name maps to multiple members.
@@ -74,7 +74,7 @@ internal static class DiagnosticDescriptors
74
74
defaultSeverity:DiagnosticSeverity.Error,
75
75
isEnabledByDefault:true,
76
76
description:"Cannot set the CanExecute name in [ReactiveCommand] to one that has multiple matches in its parent type (it must refer to a single compatible member).",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a a specified <c>CanExecute</c> name maps to an invalid member.
@@ -90,7 +90,7 @@ internal static class DiagnosticDescriptors
90
90
defaultSeverity:DiagnosticSeverity.Error,
91
91
isEnabledByDefault:true,
92
92
description:"The CanExecute name in [ReactiveCommand] must refer to a compatible member (either a property or a method) to be used in a generated command.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a method with <c>[ReactiveCommand]</c> is using an invalid attribute targeting the field or property.
@@ -106,7 +106,7 @@ internal static class DiagnosticDescriptors
106
106
defaultSeverity:DiagnosticSeverity.Error,
107
107
isEnabledByDefault:true,
108
108
description:"All attributes targeting the generated field or property for a method annotated with [ReactiveCommand] must correctly be resolved to valid types.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a method with <c>[ReactiveCommand]</c> is using an invalid attribute targeting the field or property.
@@ -122,7 +122,7 @@ internal static class DiagnosticDescriptors
122
122
defaultSeverity:DiagnosticSeverity.Error,
123
123
isEnabledByDefault:true,
124
124
description:"All attributes targeting the generated field or property for a method annotated with [ReactiveCommand] must be using valid expressions.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a method with <c>[ReactiveCommand]</c> is async void.
@@ -138,7 +138,7 @@ internal static class DiagnosticDescriptors
138
138
defaultSeverity:DiagnosticSeverity.Error,
139
139
isEnabledByDefault:true,
140
140
description:"All asynchronous methods annotated with [ReactiveCommand] should return a Task type, to benefit from the additional support provided by ReactiveCommand.FromTask.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a generated property created with <c>[Reactive]</c> would collide with the source field.
@@ -154,7 +154,7 @@ internal static class DiagnosticDescriptors
154
154
defaultSeverity:DiagnosticSeverity.Error,
155
155
isEnabledByDefault:true,
156
156
description:"The name of fields annotated with [Reactive] should use \"lowerCamel\", \"_lowerCamel\" or \"m_lowerCamel\" pattern to avoid collisions with the generated properties.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a field with <c>[Reactive]</c> is using an invalid attribute expression targeting the property.
@@ -186,7 +186,7 @@ internal static class DiagnosticDescriptors
186
186
defaultSeverity:DiagnosticSeverity.Error,
187
187
isEnabledByDefault:true,
188
188
description:"All attributes targeting the generated property for a field annotated with [Reactive] must be using valid expressions.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a field with <c>[ObservableAsProperty]</c> is using an invalid attribute targeting the property.
@@ -202,7 +202,7 @@ internal static class DiagnosticDescriptors
202
202
defaultSeverity:DiagnosticSeverity.Error,
203
203
isEnabledByDefault:true,
204
204
description:"All attributes targeting the generated property for a field annotated with [ObservableAsProperty] must correctly be resolved to valid types.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a field with <c>[ObservableAsProperty]</c> is using an invalid attribute expression targeting the property.
@@ -218,7 +218,7 @@ internal static class DiagnosticDescriptors
218
218
defaultSeverity:DiagnosticSeverity.Error,
219
219
isEnabledByDefault:true,
220
220
description:"All attributes targeting the generated property for a field annotated with [ObservableAsProperty] must be using valid expressions.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a generated property created with <c>[ObservableAsProperty]</c> would cause conflicts with other generated members.
@@ -234,7 +234,7 @@ internal static class DiagnosticDescriptors
234
234
defaultSeverity:DiagnosticSeverity.Error,
235
235
isEnabledByDefault:true,
236
236
description:"The fields annotated with [ObservableAsProperty] cannot result in a property name or have a type that would cause conflicts with other generated members.",
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a generated property created with <c>[Reactive]</c> would cause conflicts with other generated members.
@@ -250,7 +250,7 @@ internal static class DiagnosticDescriptors
250
250
defaultSeverity:DiagnosticSeverity.Error,
251
251
isEnabledByDefault:true,
252
252
description:"The fields annotated with [Reactive] cannot result in a property name or have a type that would cause conflicts with other generated members.",
0 commit comments