Skip to content

feat: enable null reference type support #1712

feat: enable null reference type support

feat: enable null reference type support #1712

Triggered via pull request March 12, 2025 17:55
Status Success
Total duration 5m 19s
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/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)
Build: src/Microsoft.OpenApi/Models/OpenApiParameter.cs#L316
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
Build: src/Microsoft.OpenApi/Models/OpenApiParameter.cs#L323
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
Build: src/Microsoft.OpenApi/Exceptions/OpenApiReaderException.cs#L14
Update this implementation of 'ISerializable' to conform to the recommended serialization pattern. Add a 'protected' constructor 'OpenApiReaderException(SerializationInfo, StreamingContext)'. (https://rules.sonarsource.com/csharp/RSPEC-3925)
Build: src/Microsoft.OpenApi/Models/OpenApiSecurityScheme.cs#L16
'IOpenApiSecurityScheme' implements 'IOpenApiReferenceable' so 'IOpenApiReferenceable' can be removed from the inheritance list. (https://rules.sonarsource.com/csharp/RSPEC-1939)
Build: src/Microsoft.OpenApi/Models/OpenApiReference.cs#L74
Make this an auto-implemented property and remove its backing field. (https://rules.sonarsource.com/csharp/RSPEC-2292)
Build: src/Microsoft.OpenApi/Models/OpenApiTag.cs#L15
'IOpenApiTag' implements 'IOpenApiReferenceable' so 'IOpenApiReferenceable' can be removed from the inheritance list. (https://rules.sonarsource.com/csharp/RSPEC-1939)
Build: src/Microsoft.OpenApi/Models/OpenApiPathItem.cs#L16
'IOpenApiPathItem' implements 'IOpenApiReferenceable' so 'IOpenApiReferenceable' can be removed from the inheritance list. (https://rules.sonarsource.com/csharp/RSPEC-1939)