Skip to content

feat: Remove default collection initialization for perf reasons #1840

feat: Remove default collection initialization for perf reasons

feat: Remove default collection initialization for perf reasons #1840

Triggered via pull request April 3, 2025 10:07
Status Success
Total duration 5m 29s
Artifacts

sonarcloud.yml

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

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs#L140
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
Build: src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L19
Refactor this field to reduce its Cognitive Complexity from 52 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
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/Reader/V31/OpenApiSchemaDeserializer.cs#L206
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
Build: src/Microsoft.OpenApi/Models/OpenApiParameter.cs#L316
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
Build: src/Microsoft.OpenApi/Models/OpenApiParameter.cs#L323
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
Build: src/Microsoft.OpenApi/Services/OpenApiFilterService.cs#L63
Refactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Services/OpenApiFilterService.cs#L122
Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Services/OpenApiFilterService.cs#L156
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Services/OpenApiFilterService.cs#L255
Refactor this method to reduce its Cognitive Complexity from 45 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)