fix: null reference exception for boolean component schemas #2907
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
3s
Build
5m 55s
Annotations
10 warnings
|
Build:
src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L361
Change this condition so that it does not always evaluate to 'True'.
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L357
Method has 8 parameters, which is greater than the 7 authorized.
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L357
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
|
|
Build:
src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L276
Refactor this constructor to reduce its Cognitive Complexity from 21 to the 15 allowed.
|
|
Build:
src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L47
Remove this call from a constructor to the overridable 'CopyReference' method.
|
|
Build:
src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L396
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.
|
|
Build:
src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L293
Change this condition so that it does not always evaluate to 'True'.
|
|
Build:
src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L84
Refactor this method to reduce its Cognitive Complexity from 67 to the 15 allowed.
|
|
Build:
src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L13
Refactor this field to reduce its Cognitive Complexity from 57 to the 15 allowed.
|
|
Build:
src/Microsoft.OpenApi/Reader/V32/OpenApiSchemaDeserializer.cs#L13
Refactor this field to reduce its Cognitive Complexity from 57 to the 15 allowed.
|