Add tests for data element Post and fix bug with AbandonChanges #2635
test-and-analyze.yml
on: pull_request
Static code analysis
8m 58s
Annotations
10 warnings
Static code analysis:
src/Altinn.App.Core/Internal/Data/InstanceDataUnitOfWork.cs#L271
Change this condition so that it does not always evaluate to 'False'. Some code paths are unreachable. (https://rules.sonarsource.com/csharp/RSPEC-2583)
|
Static code analysis:
src/Altinn.App.Core/Internal/Data/InstanceDataUnitOfWork.cs#L592
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
|
Static code analysis:
src/Altinn.App.Core/Internal/Data/InstanceDataUnitOfWork.cs#L599
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
|
Static code analysis:
src/Altinn.App.Core/Internal/Data/InstanceDataUnitOfWork.cs#L610
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
|
Static code analysis:
src/Altinn.App.Core/Internal/Data/InstanceDataUnitOfWork.cs#L614
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
|
Static code analysis:
src/Altinn.App.Api/Controllers/DataController.cs#L986
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|
Static code analysis:
src/Altinn.App.Api/Controllers/DataController.cs#L1176
Define a constant instead of using this literal 'Instance Not Found' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Static code analysis:
src/Altinn.App.Api/Controllers/TextsController.cs#L33
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/StatelessDataController.cs#L82
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|
Static code analysis:
src/Altinn.App.Api/Controllers/StatelessDataController.cs#L163
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)
|