feat: Add writer settings to enable collection sorting using a comparer #2033
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
3s
Build
3m 30s
Annotations
10 errors and 10 warnings
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L704
Argument 1: cannot convert from 'System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiLink>' to 'System.Collections.Generic.Dictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiLink>'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L703
Operator '??=' cannot be applied to operands of type 'IDictionary<string, IOpenApiLink>' and 'collection expressions'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L700
Argument 1: cannot convert from 'System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiRequestBody>' to 'System.Collections.Generic.Dictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiRequestBody>'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L699
Operator '??=' cannot be applied to operands of type 'IDictionary<string, IOpenApiRequestBody>' and 'collection expressions'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L696
Argument 1: cannot convert from 'System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiResponse>' to 'System.Collections.Generic.Dictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiResponse>'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L695
Operator '??=' cannot be applied to operands of type 'IDictionary<string, IOpenApiResponse>' and 'collection expressions'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L692
Argument 1: cannot convert from 'System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiParameter>' to 'System.Collections.Generic.Dictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiParameter>'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L691
Operator '??=' cannot be applied to operands of type 'IDictionary<string, IOpenApiParameter>' and 'collection expressions'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L688
Argument 1: cannot convert from 'System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiSchema>' to 'System.Collections.Generic.Dictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiSchema>'
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L687
Operator '??=' cannot be applied to operands of type 'IDictionary<string, IOpenApiSchema>' and 'collection expressions'
|
|
Build:
src/Microsoft.OpenApi/Services/OpenApiWalker.cs#L74
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterAnyExtensions.cs#L117
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L476
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L426
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L172
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L144
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)
|
|
Build:
src/Microsoft.OpenApi/Services/CopyReferences.cs#L17
All 'Visit' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L267
All 'WriteRequiredMap' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L25
All 'WriteProperty' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs#L139
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|