Skip to content
Merged
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
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0000.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0000
---
# ASP0000: Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices'

| | Value |
|-|-|
| **Rule ID** |ASP0000|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0000 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0001.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0001
---
# ASP0001: Authorization middleware is incorrectly configured

| | Value |
|-|-|
| **Rule ID** |ASP0001|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0001 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0003.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0003
---
# ASP0003: Do not use model binding attributes with route handlers

| | Value |
|-|-|
| **Rule ID** |ASP0003|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0003 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0004.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0004
---
# ASP0004: Do not use action results with route handlers

| | Value |
|-|-|
| **Rule ID** |ASP0004|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0004 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0005.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0005
---
# ASP0005: Do not place attribute on method called by route handler lambda

| | Value |
|-|-|
| **Rule ID** |ASP0005|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0005 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0006.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0006
---
# ASP0006: Do not use non-literal sequence numbers

| | Value |
|-|-|
| **Rule ID** |ASP0006|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0006 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0007.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0007
---
# ASP0007: Route parameter and argument optionality is mismatched

| | Value |
|-|-|
| **Rule ID** |ASP0007|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0007 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0008.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0008
---
# ASP0008: Do not use ConfigureWebHost with WebApplicationBuilder.Host

| | Value |
|-|-|
| **Rule ID** |ASP0008|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0008 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0009.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0009
---
# ASP0009: Do not use Configure with WebApplicationBuilder.WebHost

| | Value |
|-|-|
| **Rule ID** |ASP0009|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0009 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0010.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0010
---
# ASP0010: Do not use UseStartup with WebApplicationBuilder.WebHost

| | Value |
|-|-|
| **Rule ID** |ASP0010|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0010 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0011.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0011
---
# ASP0011: Suggest using builder.Logging over Host.ConfigureLogging or WebHost.ConfigureLogging

| | Value |
|-|-|
| **Rule ID** |ASP0011|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0011 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0012.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0012
---
# ASP0012: Suggest using builder.Services over Host.ConfigureServices or WebHost.ConfigureServices

| | Value |
|-|-|
| **Rule ID** |ASP0012|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0012 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0013.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0013
---
# ASP0013: Suggest switching from using Configure methods to WebApplicationBuilder.Configuration

| | Value |
|-|-|
| **Rule ID** |ASP0013|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0013 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
11 changes: 6 additions & 5 deletions aspnetcore/diagnostics/asp0014.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ ms.date: 09/27/2022
uid: diagnostics/asp0014
---
# ASP0014: Suggest using top level route registrations
| | Value |
|-|-|
| **Rule ID** |ASP0014|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|

| | Value |
| - | - |
| **Rule ID** | ASP0014 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0015.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0015
---
# ASP0015: Suggest using IHeaderDictionary properties

| | Value |
|-|-|
| **Rule ID** |ASP0015|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0015 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0016.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0016
---
# ASP0016: Do not return a value from RequestDelegate

| | Value |
|-|-|
| **Rule ID** |ASP0016|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0016 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0017.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0017
---
# ASP0017: Invalid route pattern

| | Value |
|-|-|
| **Rule ID** |ASP0017|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0017 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0018.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0018
---
# ASP0018: Unused route parameter

| | Value |
|-|-|
| **Rule ID** |ASP0018|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0018 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0019.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0019
---
# ASP0019: Suggest using IHeaderDictionary.Append or the indexer

| | Value |
|-|-|
| **Rule ID** |ASP0019|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0019 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0020.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0020
---
# ASP0020: Complex types referenced by route parameters must be parsable

| | Value |
|-|-|
| **Rule ID** |ASP0020|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0020 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0021.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0021
---
# ASP0021: The return type of the BindAsync method must be `ValueTask<T>`.

| | Value |
|-|-|
| **Rule ID** |ASP0021|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0021 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0022.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0022
---
# ASP0022: Route conflict detected between route handlers

| | Value |
|-|-|
| **Rule ID** |ASP0022|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0022 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
10 changes: 5 additions & 5 deletions aspnetcore/diagnostics/asp0023.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ uid: diagnostics/asp0023
---
# ASP0023: Route conflict detected between route handlers

| | Value |
|-|-|
| **Rule ID** |ASP0023|
| **Category** |Usage|
| **Fix is breaking or non-breaking** |Non-breaking|
| | Value |
| - | - |
| **Rule ID** | ASP0023 |
| **Category** | Usage |
| **Fix is breaking or non-breaking** | Non-breaking |

## Cause

Expand Down
Loading
Loading