Feature/flattenpolicy #1242
Annotations
1 error and 10 warnings
Analyze
Process completed with exit code 1.
|
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)
|
Loading