Skip to content

fix: refactor to avoid adding duplicate entries #2005

fix: refactor to avoid adding duplicate entries

fix: refactor to avoid adding duplicate entries #2005

Triggered via pull request May 19, 2025 08:46
Status Success
Total duration 4m 32s
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/OpenApiDocument.cs#L540
Await FlushFinalBlockAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L547
Remove this unused method parameter 'token'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L417
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#L268
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L92
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#L486
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#L547
Remove this unused method parameter 'token'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L417
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#L268
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L92
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)