Skip to content

Commit 0c2e284

Browse files
committed
Remove S6964
1 parent a6263bb commit 0c2e284

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ and adheres to a project-specific [Versioning](/README.md).
3535
- S6960: Controllers should not have mixed responsibilities
3636
- S6961: API Controllers should derive from ControllerBase instead of Controller
3737
- S6962: You should pool HTTP connections with HttpClientFactory
38-
- S6964: Value type property used as input in a controller action should be nullable, required or annotated with the JsonRequiredAttribute to avoid under-posting.
3938
- S6965: REST API actions should be annotated with an HTTP verb attribute
4039
- S6966: Awaitable method should be used
4140
- S6967: ModelState.IsValid should be called in controller actions

build/Neolution.CodeAnalysis.globalconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Top level entry required to mark this as a global AnalyzerConfig file
1+
# Top level entry required to mark this as a global AnalyzerConfig file
22
# NOTE: Do not create section headers for configuration entries
33
is_global = true
44

@@ -274,6 +274,10 @@ dotnet_diagnostic.S6608.severity = none
274274
; This rule has no effect for our projects, since we mainly use Endpoints which limits developers to only implement one action per "Controller".
275275
dotnet_diagnostic.S6931.severity = none
276276

277+
# S6964: Value type property used as input in a controller action should be nullable, required or annotated with the JsonRequiredAttribute to avoid under-posting
278+
; This is handled by a custom model binder in our project templates that produces a bad request response in case of under-posting
279+
dotnet_diagnostic.S6964.severity = none
280+
277281
# S107: Methods should not have too many parameters
278282
dotnet_diagnostic.S107.severity = warning
279283

0 commit comments

Comments
 (0)