Skip to content

Set data field by expression - #1683

Merged
ivarne merged 52 commits into
mainfrom
feature/set-data-field-by-expression
Jun 15, 2026
Merged

Set data field by expression#1683
ivarne merged 52 commits into
mainfrom
feature/set-data-field-by-expression

Let GetResolvedKeys accept empty []

ebcb7a5
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 15, 2026 in 49s

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 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=AZ7K1X8dMr7d56jNxsXf&open=AZ7K1X8dMr7d56jNxsXf&pullRequest=1683

Check warning on line 120 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 270 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=AZ7K1X13Mr7d56jNxsXR&open=AZ7K1X13Mr7d56jNxsXR&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=AZ7K1X8dMr7d56jNxsXg&open=AZ7K1X8dMr7d56jNxsXg&pullRequest=1683

Check warning on line 221 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=AZ7K1X8dMr7d56jNxsXj&open=AZ7K1X8dMr7d56jNxsXj&pullRequest=1683

Check warning on line 160 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 105 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 433 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=AZ7K1X13Mr7d56jNxsXP&open=AZ7K1X13Mr7d56jNxsXP&pullRequest=1683

Check warning on line 107 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'System.NullReferenceException' should not be thrown by user code.

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

Check warning on line 146 in src/Altinn.App.Core/Features/DataProcessing/DataModelFieldCalculator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Collection initialization can be simplified

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

Check warning on line 101 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 66 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 70 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 105 in src/Altinn.App.Core/Internal/Expressions/LayoutEvaluatorState.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=AZ7K1XsvMr7d56jNxsWy&open=AZ7K1XsvMr7d56jNxsWy&pullRequest=1683

Check warning on line 364 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=AZ7K1X13Mr7d56jNxsXN&open=AZ7K1X13Mr7d56jNxsXN&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=AZ7K1X8dMr7d56jNxsXi&open=AZ7K1X8dMr7d56jNxsXi&pullRequest=1683

Check warning on line 304 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=AZ7K1X13Mr7d56jNxsXJ&open=AZ7K1X13Mr7d56jNxsXJ&pullRequest=1683

Check failure on line 160 in src/Altinn.App.Core/Helpers/DataModel/DataModelWrapper.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 330 in src/Altinn.App.Core/Internal/Expressions/LayoutEvaluatorState.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=AZ7K1XsvMr7d56jNxsW3&open=AZ7K1XsvMr7d56jNxsW3&pullRequest=1683

Check warning on line 58 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 400 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=AZ7K1X13Mr7d56jNxsXT&open=AZ7K1X13Mr7d56jNxsXT&pullRequest=1683

Check warning on line 276 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=AZ7K1X7aMr7d56jNxsXY&open=AZ7K1X7aMr7d56jNxsXY&pullRequest=1683

Check warning on line 146 in test/Altinn.App.SourceGenerator.Integration.Tests/UnitTest/TestGetResolvedKeys.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

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

Check warning on line 233 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=AZ7K1X13Mr7d56jNxsXQ&open=AZ7K1X13Mr7d56jNxsXQ&pullRequest=1683