fix: better json support for KeyValueUrn #441
Annotations
6 errors and 10 warnings
Build and Test:
src/Altinn.Swashbuckle/test/Altinn.Swashbuckle.Tests/ExampleDataTests.cs#L34
Cannot apply indexing with
|
Build and Test:
src/Altinn.Swashbuckle/test/Altinn.Swashbuckle.Tests/ExampleDataTests.cs#L34
Cannot apply indexing with
|
Build and Test
Process completed with exit code 1.
|
Analyze:
src/Altinn.Swashbuckle/test/Altinn.Swashbuckle.Tests/ExampleDataTests.cs#L34
Cannot apply indexing with
|
Analyze:
src/Altinn.Swashbuckle/test/Altinn.Swashbuckle.Tests/ExampleDataTests.cs#L34
Cannot apply indexing with
|
Analyze
Process completed with exit code 1.
|
Analyze:
src/Altinn.Swashbuckle/src/Altinn.Swashbuckle.Abstractions/Examples/ExampleDataProvider.cs#L8
Convert this 'abstract' class to an interface. (https://rules.sonarsource.com/csharp/RSPEC-1694)
|
Analyze:
src/Altinn.Swashbuckle/src/Altinn.Swashbuckle.Abstractions/Examples/Providers/NullableExampleDataProvider.cs#L31
Remove unused constructor of private type 'Provider'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
|
Analyze:
src/Altinn.Swashbuckle/src/Altinn.Swashbuckle.Abstractions/Examples/DefaultExampleDataProviderResolver.cs#L31
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Analyze:
src/Altinn.Swashbuckle/src/Altinn.Swashbuckle.Abstractions/Examples/DefaultExampleDataProviderResolver.cs#L61
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
|
Analyze:
src/Altinn.Swashbuckle/src/Altinn.Swashbuckle.Abstractions/Examples/Providers/ExampleDataProviderProvider.cs#L10
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
|
Analyze:
src/Altinn.Swashbuckle/src/Altinn.Swashbuckle.Abstractions/Examples/Providers/NumberExampleDataProvider.cs#L14
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
|
Analyze:
src/Altinn.Authorization.ProblemDetails/src/ProblemDetails.Abstractions/ProblemExtensionData.cs#L534
Remove unused constructor of private type 'ProblemExtensionDataDebuggerProxy'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
|
Analyze:
src/Altinn.Authorization.ProblemDetails/src/ProblemDetails.Abstractions/ErrorCode.cs#L17
'ISpanFormattable' implements 'IFormattable' so 'IFormattable' can be removed from the inheritance list. (https://rules.sonarsource.com/csharp/RSPEC-1939)
|
Analyze:
src/Altinn.Authorization.ProblemDetails/src/ProblemDetails.Abstractions/ProblemExtensionData.cs#L19
'IReadOnlyCollection<KeyValuePair<string, string>>' implements 'IEnumerable<KeyValuePair<string, string>>' so 'IEnumerable<KeyValuePair<string, string>>' can be removed from the inheritance list. (https://rules.sonarsource.com/csharp/RSPEC-1939)
|
Analyze:
src/Altinn.Authorization.ProblemDetails/src/ProblemDetails.Abstractions/ProblemExtensionData.cs#L20
'IReadOnlyDictionary<string, string>' implements 'IReadOnlyCollection<KeyValuePair<string, string>>' so 'IReadOnlyCollection<KeyValuePair<string, string>>' can be removed from the inheritance list. (https://rules.sonarsource.com/csharp/RSPEC-1939)
|