fix: aligns exception and diagnostics behaviour across the API surface #3472
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
5s
Build
9m 57s
Annotations
10 warnings
|
Build:
src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs#L325
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last"
|
|
Build:
src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs#L325
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last"
|
|
Build:
src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs#L325
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last"
|
|
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.
|
|
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.
|