Skip to content

fix: aligns exception and diagnostics behaviour across the API surface #3501

fix: aligns exception and diagnostics behaviour across the API surface

fix: aligns exception and diagnostics behaviour across the API surface #3501

Triggered via pull request September 16, 2026 19:08
Status Success
Total duration 11m 39s
Artifacts

sonarcloud.yml

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

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs#L353
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last"
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L894
Loops should be simplified using the "Where" LINQ method
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L891
Loop should be simplified by calling Select(pathItem => pathItem.Operations))
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L624
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L532
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L596
Remove this unused method parameter 'token'.
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L525
Remove this null-forgiving operator; the compiler already knows this expression is not null here.
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L463
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L314
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed.
Build: src/Microsoft.OpenApi/Reader/OpenApiJsonReader.cs#L167
All 'ReadFragment' method overloads should be adjacent.