Skip to content

feat: Remove default collection initialization for perf reasons #1870

feat: Remove default collection initialization for perf reasons

feat: Remove default collection initialization for perf reasons #1870

Triggered via pull request April 8, 2025 18:09
Status Success
Total duration 5m 57s
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/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/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/Validations/Rules/RuleHelpers.cs#L140
Define a constant instead of using this literal 'number' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Build: src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs#L212
Define a constant instead of using this literal 'string' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
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)