Skip to content

Commit 9864728

Browse files
committed
Remvoe - S6931: ASP.NET controller actions should not have a route template starting with "/"
1 parent 2c4a757 commit 9864728

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ and adheres to a project-specific [Versioning](/README.md).
3030
- S6678: Use PascalCase for named placeholders
3131
- S6781: JWT secret keys should not be disclosed
3232
- S6930: Backslash should be avoided in route templates
33-
- S6931: ASP.NET controller actions should not have a route template starting with "/"
3433
- S6932: Use model binding instead of reading raw request data
3534
- S6934: A Route attribute should be added to the controller when a route template is specified at the action level
3635
- S6960: Controllers should not have mixed responsibilities

build/Neolution.CodeAnalysis.globalconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ dotnet_diagnostic.S6605.severity = none
270270
; Better readability of `First()` and `Last()` are preferred over performance gains
271271
dotnet_diagnostic.S6608.severity = none
272272

273+
# S6931: ASP.NET controller actions should not have a route template starting with "/"
274+
; This rule has no effect for our projects, since we mainly use Endpoints which limits developers to only implement one action per "Controller".
275+
dotnet_diagnostic.S6931.severity = none
276+
273277
# S107: Methods should not have too many parameters
274278
dotnet_diagnostic.S107.severity = warning
275279

0 commit comments

Comments
 (0)