Skip to content

Feature/flattenpolicy #1241

Feature/flattenpolicy

Feature/flattenpolicy #1241

Triggered via pull request October 24, 2024 10:08
Status Failure
Total duration 2m 48s
Artifacts

build-and-analyze.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 14 warnings
Build and Test
Process completed with exit code 1.
Analyze
Process completed with exit code 1.
Build and Test: test/Altinn.ResourceRegistry.Tests/Altinn2ExportControllerTest.cs#L199
Cannot convert null literal to non-nullable reference type.
Build and Test: test/Altinn.ResourceRegistry.Tests/Altinn2ExportControllerTest.cs#L199
Cannot convert null literal to non-nullable reference type.
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L309
Remove the unused private method 'GetActionValueFromRule'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
Analyze: src/Altinn.ResourceRegistry.Core/Services/ResourceRegistryService.cs#L167
Refactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L33
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L38
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L50
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L62
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L218
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L230
Loop should be simplified by calling Select(match => match.AttributeDesignator)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
Analyze: src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L257
'anyOfSubjects' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)