Skip to content

Support calculating into lists and objects - #1821

Open
ivarne wants to merge 5 commits into
mainfrom
feat/support-calculating-into-lists-and-objects
Open

Support calculating into lists and objects#1821
ivarne wants to merge 5 commits into
mainfrom
feat/support-calculating-into-lists-and-objects

Change the schema for calculations to a list of calculations, instead…

127cb9b
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 30, 2026 in 59s

Quality Gate failed

Failed conditions
63.5% Coverage on New Code (required ≥ 65%)
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 failure on line 82 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=AZ8YMMcgs8nzK2s3KjzO&open=AZ8YMMcgs8nzK2s3KjzO&pullRequest=1821

Check warning on line 699 in src/Altinn.App.Core/Internal/Expressions/ExpressionValue.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=AZ7cVHl3mUk2Yti1dLGU&open=AZ7cVHl3mUk2Yti1dLGU&pullRequest=1821

Check failure on line 538 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=AZ8YMMcgs8nzK2s3KjzR&open=AZ8YMMcgs8nzK2s3KjzR&pullRequest=1821

Check warning on line 138 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=AZ8YMMYMs8nzK2s3KjzM&open=AZ8YMMYMs8nzK2s3KjzM&pullRequest=1821

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

All 'ExpressionValue' method overloads should be adjacent.

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

Check warning on line 261 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=AZ7cVHl3mUk2Yti1dLGa&open=AZ7cVHl3mUk2Yti1dLGa&pullRequest=1821

Check failure on line 471 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=AZ8YMMcgs8nzK2s3KjzQ&open=AZ8YMMcgs8nzK2s3KjzQ&pullRequest=1821

Check failure on line 560 in src/Altinn.App.Core/Internal/Expressions/ExpressionValue.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed.

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

Check warning on line 469 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=AZ8YMMcgs8nzK2s3KjzV&open=AZ8YMMcgs8nzK2s3KjzV&pullRequest=1821

Check warning on line 222 in src/Altinn.App.Core/Implementation/AppResourcesSI.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=AZ8YMMcgs8nzK2s3KjzX&open=AZ8YMMcgs8nzK2s3KjzX&pullRequest=1821

Check failure on line 27 in src/Altinn.App.Core/Helpers/Extensions/Utf8JsonReaderExtentions.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

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

Check warning on line 228 in src/Altinn.App.Core/Internal/Expressions/ExpressionValue.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=AZ7cVHl3mUk2Yti1dLGX&open=AZ7cVHl3mUk2Yti1dLGX&pullRequest=1821

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'false' 6 times.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

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

Check warning on line 411 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=AZ8YMMcgs8nzK2s3KjzU&open=AZ8YMMcgs8nzK2s3KjzU&pullRequest=1821

Check warning on line 430 in test/Altinn.App.Core.Tests/LayoutExpressions/ExpressionEvaluatorTests/ExpressionValueTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The naming of Assert.IsAssignableFrom can be confusing. An overload of Assert.IsType is available with an exact match flag which can be set to false to perform the same operation.

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

Check warning on line 86 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=AZ8YMMYMs8nzK2s3KjzL&open=AZ8YMMYMs8nzK2s3KjzL&pullRequest=1821

Check failure on line 413 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=AZ8YMMcgs8nzK2s3KjzP&open=AZ8YMMcgs8nzK2s3KjzP&pullRequest=1821

Check warning on line 118 in src/Altinn.App.Core/Features/DataProcessing/DataModelFieldCalculator.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=AZ7cVHpqmUk2Yti1dLGc&open=AZ7cVHpqmUk2Yti1dLGc&pullRequest=1821

Check warning on line 299 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=AZ8YMMcgs8nzK2s3KjzW&open=AZ8YMMcgs8nzK2s3KjzW&pullRequest=1821

Check failure on line 434 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=AZ8YMMcgs8nzK2s3KjzS&open=AZ8YMMcgs8nzK2s3KjzS&pullRequest=1821

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

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

Check failure on line 362 in src/Altinn.App.Core/Internal/Expressions/ExpressionValue.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'throw' expression.

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

Check warning on line 39 in src/Altinn.App.Core/Features/DataProcessing/DataModelFieldCalculator.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=AZ7cVHpqmUk2Yti1dLGb&open=AZ7cVHpqmUk2Yti1dLGb&pullRequest=1821