feat: Add writer settings to enable collection sorting using a comparer #2057
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
2s
Build
5m 25s
Annotations
10 warnings
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L170
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#L142
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/Models/OpenApiDocument.cs#L262
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiComponents.cs#L155
Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
|
Build:
src/Microsoft.OpenApi/Services/CopyReferences.cs#L13
All 'Visit' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L265
All 'WriteRequiredMap' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L23
All 'WriteProperty' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Validations/ValidationRuleSet.cs#L36
All 'ValidationRuleSet' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
|
Build:
src/Microsoft.OpenApi/Validations/ValidationRuleSet.cs#L26
Refactor 'Rules' into a method, properties should not copy collections. (https://rules.sonarsource.com/csharp/RSPEC-2365)
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs#L134
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|