Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/list-of-diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Analyzer Warnings

### ASP (`ASP0000-ASP0038`)
### ASP (`ASP0000-ASP0039`)

| Diagnostic ID | Description |
| :---------------- | :---------- |
Expand Down Expand Up @@ -44,6 +44,7 @@
| __`ASP0036`__ | Validatable property or its type on an endpoint parameter type is not accessible |
| __`ASP0037`__ | \[ValidatableType] cannot be used in generated code |
| __`ASP0038`__ | \[ValidatableType] should not be used without a call to 'AddValidation' |
| __`ASP0039`__ | Do not access a captured RenderTreeBuilder from a local function |

### API (`API1000-API1003`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ internal static class DiagnosticDescriptors
DiagnosticSeverity.Info,
isEnabledByDefault: true);

internal static readonly DiagnosticDescriptor DoNotUseLocalFunctionsInMarkup = CreateDiagnosticDescriptor(
"ASP0039",
CreateLocalizableResourceString(nameof(Resources.Analyzer_DoNotUseLocalFunctionsInMarkup_Title)),
CreateLocalizableResourceString(nameof(Resources.Analyzer_DoNotUseLocalFunctionsInMarkup_Message)),
Usage,
Comment thread
PureWeen marked this conversation as resolved.
DiagnosticSeverity.Error,
isEnabledByDefault: true);

private static DiagnosticDescriptor CreateDiagnosticDescriptor(
string id,
LocalizableString title,
Expand Down
Loading
Loading