fix: aligns exception and diagnostics behaviour across the API surface #3478
Triggered via pull request
September 11, 2026 13:34
Status
Success
Total duration
12m 12s
Artifacts
–
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
3s
Build
12m 0s
Annotations
10 warnings
|
Build:
src/Microsoft.OpenApi/Reader/OpenApiJsonReader.cs#L38
Remove this unnecessary check for null. Some code paths are unreachable.
|
|
Build:
src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L166
Remove this call from a constructor to the overridable 'CopyReference' method.
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L892
Loops should be simplified using the "Where" LINQ method
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L889
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#L525
Remove this null-forgiving operator; the compiler already knows this expression is not null here.
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L596
Remove this unused method parameter 'token'.
|
|
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.
|