Skip to content

feat: Add writer settings to enable collection sorting using a comparer #2047

feat: Add writer settings to enable collection sorting using a comparer

feat: Add writer settings to enable collection sorting using a comparer #2047

Triggered via pull request May 26, 2025 08:36
Status Failure
Total duration 4m 38s
Artifacts

sonarcloud.yml

on: pull_request
check if SONAR_TOKEN is set in github secrets
2s
check if SONAR_TOKEN is set in github secrets
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Build
Process completed with exit code 1.
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L478
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#L433
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/Validations/ValidationRuleSet.cs#L29
Refactor 'Rules' into a method, properties should not copy collections. (https://rules.sonarsource.com/csharp/RSPEC-2365)
Build: src/Microsoft.OpenApi/Validations/ValidationRuleSet.cs#L39
All 'ValidationRuleSet' 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/Services/CopyReferences.cs#L17
All 'Visit' 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)