Skip to content

feat: enable null reference type support #1629

feat: enable null reference type support

feat: enable null reference type support #1629

Triggered via pull request February 27, 2025 09:23
Status Success
Total duration 9m 35s
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/Writers/OpenApiWriterAnyExtensions.cs#L117
Converting null literal or possible null value to non-nullable type.
Build: src/Microsoft.OpenApi/Services/OpenApiWalker.cs#L57
Possible null reference argument for parameter 'tags' in 'void OpenApiWalker.Walk(ISet<OpenApiTag> tags)'.
Build: src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L144
Possible null reference argument for parameter 'externalDocs' in 'OpenApiExternalDocs.OpenApiExternalDocs(OpenApiExternalDocs externalDocs)'.
Build: src/Microsoft.OpenApi/Services/OpenApiWalker.cs#L600
Possible null reference argument for parameter 'tags' in 'void OpenApiWalker.Walk(ISet<OpenApiTagReference> tags)'.
Build: src/Microsoft.OpenApi/Reader/OpenApiReaderSettings.cs#L166
Dereference of a possibly null reference.
Build: src/Microsoft.OpenApi/Reader/OpenApiReaderSettings.cs#L22
Non-nullable field '_httpClient' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Build: src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs#L266
Possible null reference argument for parameter 'baseUrl' in 'DefaultStreamLoader.DefaultStreamLoader(Uri baseUrl, HttpClient httpClient)'.
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/V2/OpenApiSecuritySchemeDeserializer.cs#L110
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
Build: src/Microsoft.OpenApi/Writers/OpenApiYamlWriter.cs#L76
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)