Upcoming virtual event!
Register now for the Sonar Summit - March 3
✕
Sonar Community
S6967 - ModelState.IsValid not needed for JsonResult
Rules and Languages
Report False-positive / False-negative...
Colin
(Colin)
July 2, 2024, 7:08am
2
Hey there.’
Can you please provide a complete code sample?
show post in topic
Related topics
Topic
Replies
Views
Activity
ModelState.IsValid should be checked in controller actions
SonarQube Cloud
sonarqube-cloud
1
1398
August 27, 2024
Using IActionResult without also using [ProducesResponseType] should be flagged at least as a code smell
New rules / language support
csharp
1
1085
March 25, 2021
New C# rule: validate antiforgery tokens in MVC actions
New rules / language support
csharp
3
6604
December 29, 2021
S2360 - Optional parameters should not be used: Add exception for API controller methods
Report False-positive / False-negative...
csharp
,
dotnet
4
97
February 7, 2025
Methods should be named according to their synchronicities
Report False-positive / False-negative...
sonarqube-cloud
6
49
July 1, 2025