Skip to content

feat: Remove default collection initialization for perf reasons #1770

feat: Remove default collection initialization for perf reasons

feat: Remove default collection initialization for perf reasons #1770

Triggered via pull request March 25, 2025 14:31
Status Success
Total duration 6m 4s
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#L152
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
Build: src/Microsoft.OpenApi/Models/OpenApiParameter.cs#L338
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#L331
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
Build: src/Microsoft.OpenApi/Reader/V3/OpenApiV3VersionService.cs#L21
Remove the unused private field '_pathSeparator'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
Build: src/Microsoft.OpenApi/Models/OpenApiComponents.cs#L216
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/Models/OpenApiComponents.cs#L375
Remove the unused local variable 'schemas'. (https://rules.sonarsource.com/csharp/RSPEC-1481)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L290
Refactor this method to reduce its Cognitive Complexity from 34 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L442
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L511
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L596
Remove this hardcoded path-delimiter. (https://rules.sonarsource.com/csharp/RSPEC-1075)