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
title:"Throws attribute is not valid on full property declarations",
136
136
messageFormat:"Throws attribute is not valid on full property declarations. Place it on accessors instead.",
137
-
category:"Usage",
137
+
category:"Contract",
138
138
DiagnosticSeverity.Error,
139
139
isEnabledByDefault:true,
140
140
description:"The [Throws] attribute cannot be applied to full property declarations. Instead, place the attribute on individual accessors (get or set) to indicate which operations may throw exceptions.");
@@ -143,7 +143,7 @@ public partial class CheckedExceptionsAnalyzer : DiagnosticAnalyzer
143
143
DiagnosticIdXmlDocButNoThrows,
144
144
title:"Exception in XML documentation is not declared with [Throws]",
145
145
messageFormat:"Exception '{0}' is documented in XML documentation but not declared with [Throws]",
146
-
category:"Usage",
146
+
category:"Contract",
147
147
DiagnosticSeverity.Warning,
148
148
isEnabledByDefault:true,
149
149
description:"This member's XML documentation declares an exception, but it is not declared with a [Throws] attribute. "+
@@ -153,7 +153,7 @@ public partial class CheckedExceptionsAnalyzer : DiagnosticAnalyzer
153
153
DiagnosticIdRedundantExceptionDeclaration,
154
154
title:"Redundant exception declaration",
155
155
messageFormat:"Exception '{0}' is declared but never thrown",
156
-
category:"Usage",
156
+
category:"Contract",
157
157
DiagnosticSeverity.Warning,
158
158
isEnabledByDefault:true,
159
159
description:"Detects exception types declared with [Throws] that are never thrown in the method or property body, making the declaration redundant.");
@@ -162,7 +162,7 @@ public partial class CheckedExceptionsAnalyzer : DiagnosticAnalyzer
162
162
DiagnosticIdRuleUnreachableCode,
163
163
title:"Unreachable code",
164
164
messageFormat:"The code is unreachable in the current control flow",
165
-
category:"Usage",
165
+
category:"Control flow",
166
166
defaultSeverity:DiagnosticSeverity.Hidden,
167
167
isEnabledByDefault:true,
168
168
description:"Detects throw statements that cannot be reached due to surrounding control flow or exception handling.",
0 commit comments