DotNetAnalyzers / AspNetCoreAnalyzers

MIT License
62 stars 4 forks source link

Don't use reserved words as route parameter names #37

Closed JohanLarsson closed 5 years ago

JohanLarsson commented 5 years ago

The following keywords are reserved names and can't be used as route names or parameters:

  • [x] action
  • [x] area
  • [x] controller
  • [x] handler
  • [x] page

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-2.2#reserved-routing-names