Skip to content

Add GenericFormDataValidator2 that doesn't take DataType in constructor #2090

Add GenericFormDataValidator2 that doesn't take DataType in constructor

Add GenericFormDataValidator2 that doesn't take DataType in constructor #2090

Triggered via pull request June 1, 2024 12:19
Status Success
Total duration 7m 28s
Artifacts

test-and-analyze.yml

on: pull_request
Static code analysis
7m 13s
Static code analysis
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator.cs#L13
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator.cs#L30
A static field in a generic type is not shared among instances of different close constructed types. (https://rules.sonarsource.com/csharp/RSPEC-2743)
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator2.cs#L16
A static field in a generic type is not shared among instances of different close constructed types. (https://rules.sonarsource.com/csharp/RSPEC-2743)
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator2.cs#L28
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator2.cs#L35
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator.cs#L39
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
Static code analysis: src/Altinn.App.Core/Features/Validation/GenericFormDataValidator.cs#L46
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
Static code analysis: src/Altinn.App.Api/Controllers/TextsController.cs#L32
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#L81
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#L157
ModelState.IsValid should be checked in controller actions. (https://rules.sonarsource.com/csharp/RSPEC-6967)