POST instance: don't attemt to parse instance from body when it's empty or not json #2657
test-and-analyze.yml
on: pull_request
Static code analysis
8m 51s
Annotations
10 warnings
Static code analysis:
src/Altinn.App.Api/Controllers/InstancesController.cs#L1150
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|
Static code analysis:
src/Altinn.App.Api/Controllers/ActionsController.cs#L78
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/AuthorizationController.cs#L45
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/AuthorizationController.cs#L108
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/DataTagsController.cs#L50
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/DataTagsController.cs#L152
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/DataTagsController.cs#L91
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/EventsReceiverController.cs#L45
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/InstancesController.cs#L191
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Static code analysis:
src/Altinn.App.Api/Controllers/InstancesController.cs#L286
Merge this if statement with the enclosing one. (https://rules.sonarsource.com/csharp/RSPEC-1066)
|