9.25
Hello everyone,
This release comes with seven new rules for ASP.NET core alongside some improvements.
Enjoy!
New Rules
- 9096 - [C#] New Rule S6966: Awaitable method should be used
- 9095 - [C#] New Rule S6967: ModelState.IsValid should be called in controller actions
- 9094 - [C#] New Rule S6964: The value type properties of a model class should be nullable or marked as "Required" to avoid under-posting.
- 9093 - [C#] New rule S6968: Actions that return a value should be annotated with ProducesResponseTypeAttribute containing the return type
- 9092 - [C#] New rule S6965: You should use HttpAttribute in API controller actions
- 9091 - [C#] New rule S6962: You should pool HTTP connections with HttpClientFactory
- 9089 - [C#] New rule S6960: Controllers should not have too many responsibilities