Skip to content

Fixed unit tests

e9712ef
Select commit
Loading
Failed to load commit list.
Open

Set data field by expression #1683

Fixed unit tests
e9712ef
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 10, 2026 in 1m 7s

Quality Gate failed

Failed conditions
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 85 in src/Altinn.App.Core/Internal/App/IAppResources.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not forget to remove this deprecated code someday.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQm3hgA_Kbzevocl&open=AZy-iQm3hgA_Kbzevocl&pullRequest=1683

Check warning on line 468 in src/Altinn.App.Core/Implementation/AppResourcesSI.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not construct the path from user-controlled data.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQvqhgA_Kbzevodj&open=AZy-iQvqhgA_Kbzevodj&pullRequest=1683

Check warning on line 47 in src/Altinn.App.Core/Features/DataProcessing/DataFieldValueCalculator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unnecessary Boolean literal(s).

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQs9hgA_Kbzevoc6&open=AZy-iQs9hgA_Kbzevoc6&pullRequest=1683

Check warning on line 221 in test/Altinn.App.Core.Tests/Features/DataProcessing/DataFieldValueCalculatorTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Non-nullable property 'LogMessageWarning' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZzXvHPoNftGUixZApHn&open=AZzXvHPoNftGUixZApHn&pullRequest=1683

Check warning on line 410 in src/Altinn.App.Core/Implementation/AppResourcesSI.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not construct the path from user-controlled data.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQvqhgA_Kbzevodk&open=AZy-iQvqhgA_Kbzevodk&pullRequest=1683

Check failure on line 470 in src/Altinn.App.Core/Implementation/AppResourcesSI.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not construct the path from user-controlled data.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQvqhgA_Kbzevodg&open=AZy-iQvqhgA_Kbzevodg&pullRequest=1683

Check failure on line 412 in src/Altinn.App.Core/Implementation/AppResourcesSI.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not construct the path from user-controlled data.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQvqhgA_Kbzevodh&open=AZy-iQvqhgA_Kbzevodh&pullRequest=1683

Check warning on line 143 in src/Altinn.App.Core/Features/DataProcessing/DataFieldValueCalculator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either log this exception and handle it, or rethrow it with some contextual information.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQs9hgA_Kbzevoc7&open=AZy-iQs9hgA_Kbzevoc7&pullRequest=1683

Check warning on line 294 in src/Altinn.App.Core/Internal/Data/IFormDataWrapper.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this 'TODO' comment.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQjUhgA_KbzevocM&open=AZy-iQjUhgA_KbzevocM&pullRequest=1683

Check warning on line 360 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocx&open=AZy-iQnyhgA_Kbzevocx&pullRequest=1683

Check warning on line 298 in src/Altinn.App.Core/Implementation/AppResourcesSI.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not construct the path from user-controlled data.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQvqhgA_Kbzevodl&open=AZy-iQvqhgA_Kbzevodl&pullRequest=1683

Check warning on line 268 in src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this 'TODO' comment.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQtShgA_KbzevodZ&open=AZy-iQtShgA_KbzevodZ&pullRequest=1683

Check warning on line 278 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocs&open=AZy-iQnyhgA_Kbzevocs&pullRequest=1683

Check warning on line 39 in src/Altinn.App.Core/Internal/Data/IFormDataWrapper.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename virtual/interface member IFormDataWrapper.Get(ReadOnlySpan<char>) so that it no longer conflicts with the reserved language keyword 'Get'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQjUhgA_KbzevocN&open=AZy-iQjUhgA_KbzevocN&pullRequest=1683

Check warning on line 306 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocu&open=AZy-iQnyhgA_Kbzevocu&pullRequest=1683

Check warning on line 402 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocz&open=AZy-iQnyhgA_Kbzevocz&pullRequest=1683

Check warning on line 272 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders in the logging message template

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevoc2&open=AZy-iQnyhgA_Kbzevoc2&pullRequest=1683

Check warning on line 220 in src/Altinn.App.Core/Internal/Expressions/ExpressionValue.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Identifier 'String' contains type name

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQkPhgA_Kbzevocb&open=AZy-iQkPhgA_Kbzevocb&pullRequest=1683

Check warning on line 235 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders in the logging message template

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevoc1&open=AZy-iQnyhgA_Kbzevoc1&pullRequest=1683

Check warning on line 237 in src/Altinn.App.Core/Internal/Expressions/LayoutEvaluatorState.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQk9hgA_Kbzevoce&open=AZy-iQk9hgA_Kbzevoce&pullRequest=1683

Check warning on line 32 in src/Altinn.App.Core/Internal/Expressions/ExpressionHelper.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not update the stop condition variable 'index' in the body of the for loop.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQmXhgA_Kbzevock&open=AZy-iQmXhgA_Kbzevock&pullRequest=1683

Check warning on line 321 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocv&open=AZy-iQnyhgA_Kbzevocv&pullRequest=1683

Check warning on line 431 in src/Altinn.App.Core/Implementation/AppResourcesSI.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not construct the path from user-controlled data.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQvqhgA_Kbzevodm&open=AZy-iQvqhgA_Kbzevodm&pullRequest=1683

Check warning on line 366 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use PascalCase for named placeholders.

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocy&open=AZy-iQnyhgA_Kbzevocy&pullRequest=1683

Check warning on line 91 in src/Altinn.App.Core/Features/Validation/Default/ExpressionValidator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unnecessary Boolean literal(s).

See more on https://sonarcloud.io/project/issues?id=Altinn_app-lib-dotnet&issues=AZy-iQnyhgA_Kbzevocn&open=AZy-iQnyhgA_Kbzevocn&pullRequest=1683