Feature/flattenpolicy #1241
build-and-analyze.yml
on: pull_request
Build and Test
2m 11s
Analyze
2m 32s
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:
src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L349
A closing brace should not be preceded by a blank line (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1508.md)
|
Build and Test:
test/Altinn.ResourceRegistry.Tests/Altinn2ExportControllerTest.cs#L199
Cannot convert null literal to non-nullable reference type.
|
Build and Test:
src/Altinn.ResourceRegistry.Core/Helpers/PolicyHelper.cs#L349
A closing brace should not be preceded by a blank line (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1508.md)
|
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/Helpers/PolicyHelper.cs#L349
A closing brace should not be preceded by a blank line (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1508.md)
|
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)
|