Skip to content

chore(main): release 2.0.0-preview.18 #1978

chore(main): release 2.0.0-preview.18

chore(main): release 2.0.0-preview.18 #1978

Triggered via pull request May 13, 2025 07:35
Status Success
Total duration 5m 8s
Artifacts

sonarcloud.yml

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

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Models/OpenApiOperation.cs#L341
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiOperation.cs#L364
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
Build: src/Microsoft.OpenApi/Models/OpenApiOperation.cs#L231
Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiOperation.cs#L42
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#L425
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#L464
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#L171
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#L143
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#L266
All 'WriteRequiredMap' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L24
All 'WriteProperty' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)