Skip to content

feat/deep copy - #2990

Draft
Vincent Biret (baywet) wants to merge 3 commits into
mainfrom
feat/deep-copy
Draft

feat/deep copy#2990
Vincent Biret (baywet) wants to merge 3 commits into
mainfrom
feat/deep-copy

chore: adds xunit to cspell configuration

27be67d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jul 23, 2026 in 1m 0s

Quality Gate failed

Annotations

Check warning on line 893 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make 'CopyExtension' a static method.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rT&open=AZ-QJpQKZzjgfdxh-3rT&pullRequest=2990

Check failure on line 810 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rS&open=AZ-QJpQKZzjgfdxh-3rS&pullRequest=2990

Check warning on line 861 in src/Microsoft.OpenApi/Models/OpenApiDocument.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpM-Zzjgfdxh-3rJ&open=AZ-QJpM-Zzjgfdxh-3rJ&pullRequest=2990

Check warning on line 900 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make 'CopyMetadata' a static method.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rU&open=AZ-QJpQKZzjgfdxh-3rU&pullRequest=2990

Check warning on line 647 in src/Microsoft.OpenApi/Models/OpenApiDocument.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpM-Zzjgfdxh-3rI&open=AZ-QJpM-Zzjgfdxh-3rI&pullRequest=2990

Check warning on line 283 in src/Microsoft.OpenApi/Models/References/OpenApiSchemaReference.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpI_Zzjgfdxh-3rF&open=AZ-QJpI_Zzjgfdxh-3rF&pullRequest=2990

Check warning on line 640 in src/Microsoft.OpenApi/Models/OpenApiDocument.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpM-Zzjgfdxh-3rG&open=AZ-QJpM-Zzjgfdxh-3rG&pullRequest=2990

Check warning on line 532 in src/Microsoft.OpenApi/Models/OpenApiDocument.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpM-Zzjgfdxh-3rK&open=AZ-QJpM-Zzjgfdxh-3rK&pullRequest=2990

Check warning on line 893 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'CopyExtension' does not access instance data and can be marked as static

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rY&open=AZ-QJpQKZzjgfdxh-3rY&pullRequest=2990

Check warning on line 642 in src/Microsoft.OpenApi/Models/OpenApiDocument.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpM-Zzjgfdxh-3rH&open=AZ-QJpM-Zzjgfdxh-3rH&pullRequest=2990

Check warning on line 126 in src/Microsoft.OpenApi/Models/OpenApiDiscriminator.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQAZzjgfdxh-3rN&open=AZ-QJpQAZzjgfdxh-3rN&pullRequest=2990

Check warning on line 903 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'SetReferenceHostDocument' does not access instance data and can be marked as static

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rX&open=AZ-QJpQKZzjgfdxh-3rX&pullRequest=2990

Check warning on line 843 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change return type of method 'CopyList' from 'System.Collections.Generic.IList<T>?' to 'System.Collections.Generic.List<T>?' for improved performance

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rZ&open=AZ-QJpQKZzjgfdxh-3rZ&pullRequest=2990

Check warning on line 119 in src/Microsoft.OpenApi/Models/OpenApiSecurityRequirement.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpPqZzjgfdxh-3rL&open=AZ-QJpPqZzjgfdxh-3rL&pullRequest=2990

Check warning on line 900 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'CopyMetadata' does not access instance data and can be marked as static

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rW&open=AZ-QJpQKZzjgfdxh-3rW&pullRequest=2990

Check warning on line 712 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this condition so that it does not always evaluate to 'True'.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rR&open=AZ-QJpQKZzjgfdxh-3rR&pullRequest=2990

Check warning on line 903 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make 'SetReferenceHostDocument' a static method.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rV&open=AZ-QJpQKZzjgfdxh-3rV&pullRequest=2990

Check warning on line 54 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rP&open=AZ-QJpQKZzjgfdxh-3rP&pullRequest=2990

Check failure on line 688 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rQ&open=AZ-QJpQKZzjgfdxh-3rQ&pullRequest=2990

Check warning on line 22 in src/Microsoft.OpenApi/Models/OpenApiDeepCopyContext.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

All 'Copy' method overloads should be adjacent.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpQKZzjgfdxh-3rO&open=AZ-QJpQKZzjgfdxh-3rO&pullRequest=2990

Check warning on line 171 in src/Microsoft.OpenApi/Models/OpenApiSecurityRequirement.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this null-forgiving operator; the compiler already knows this expression is not null here.

See more on https://sonarcloud.io/project/issues?id=microsoft_OpenAPI.NET&issues=AZ-QJpPqZzjgfdxh-3rM&open=AZ-QJpPqZzjgfdxh-3rM&pullRequest=2990