dotnet / dotnet/aspnetcore

Update StartupAnalyzer to recommend calling UseStatusCodePages after UseRouting

Open
#38,591 2 comments 0 reactions 0 assignees View on GitHub
analyzer area-minimal area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

As a follow up to https://github.com/dotnet/aspnetcore/pull/38509, we should add a startup analyzer that recommends ordering `UseStatusCodePages` after `UseRouting` . This is somewhat contingent on https://github.com/dotnet/aspnetcore/issues/38590 being done as we really don't want this analysis to start appearing for apps targeting .net6 or earlier (which is what would happen if we add new rules to the ones shipping via the SDK).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.